/* ============================================================
   NEWSROOM INDONESIA - Professional News Website CSS
   Theme: Red #C8102E + White + Dark Black
   Font: Merriweather (headline) + Inter (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,400&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ============ CSS VARIABLES ============ */
:root {
  --primary:       #C8102E;
  --primary-dark:  #9B0D24;
  --primary-light: #E8132E;
  --white:         #FFFFFF;
  --black:         #1A1A1A;
  --gray-100:      #F5F5F5;
  --gray-200:      #E8E8E8;
  --gray-300:      #D4D4D4;
  --gray-500:      #888888;
  --gray-700:      #444444;
  --footer-bg:     #181818;
  --footer-mid:    #222222;
  --border:        #E2E2E2;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:     0 4px 12px rgba(0,0,0,0.12);
  --shadow-lg:     0 8px 24px rgba(0,0,0,0.16);
  --transition:    0.25s ease;
  --font-serif:    'Merriweather', Georgia, serif;
  --font-sans:     'Inter', -apple-system, sans-serif;
}

/* ============ RESET & BASE ============ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

ul { list-style: none; }

/* ============ UTILITY CLASSES ============ */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}

.section-title span {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--primary);
  color: var(--white);
  padding: 6px 14px;
  display: inline-block;
}

.section-title-plain {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--primary);
}

.section-title-plain h2 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
}

.category-badge,
a.category-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--primary);
  color: #ffffff !important;
  padding: 3px 8px;
  border-radius: 2px;
  text-decoration: none;
  transition: background var(--transition), opacity var(--transition);
}

.category-badge:hover,
a.category-badge:hover {
  background: #990000 !important;
  color: #ffffff !important;
  text-decoration: none;
  opacity: 0.95;
}

.category-badge.badge-rubrik,
a.category-badge.badge-rubrik {
  background: #2b2b2b !important;
  color: #ffffff !important;
}

.category-badge.badge-rubrik:hover,
a.category-badge.badge-rubrik:hover {
  background: var(--primary) !important;
  color: #ffffff !important;
}

.category-badge.dark,
a.category-badge.dark {
  background: rgba(0,0,0,0.75) !important;
  color: #ffffff !important;
}

.badge-overlay {
  position: absolute;
  bottom: 10px;
  left: 10px;
}

/* ============ TOP BAR ============ */
.topbar {
  background: #f0f0f0;
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
  font-size: 12px;
  font-family: var(--font-sans);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--gray-700);
}

.topbar-left .weather {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.topbar-left .weather-icon {
  font-size: 14px;
}

.topbar-left .date {
  color: var(--gray-500);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.topbar-links a {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.03em;
  transition: color var(--transition);
}

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

.topbar-links span { color: var(--gray-300); }

.topbar-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--gray-300);
  border-radius: 50%;
  color: var(--white);
  font-size: 10px;
  transition: background var(--transition);
}

.topbar-social a.fb:hover  { background: #1877F2; }
.topbar-social a.ig:hover  { background: #E1306C; }
.topbar-social a.tw:hover  { background: #1DA1F2; }
.topbar-social a.yt:hover  { background: #FF0000; }

/* ============ HEADER ============ */
.site-header {
  background: var(--white);
  padding: 16px 0 12px;
  border-bottom: 1px solid var(--border);
}

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

.site-logo {
  flex-shrink: 0;
}

.site-logo img {
  height: 50px;
  width: auto;
  display: block;
}

.header-ad {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.ad-banner {
  background: var(--gray-100);
  border: 1px dashed var(--gray-300);
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 11px;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  height: 60px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ============ NAVIGATION ============ */
.main-nav {
  background: var(--white);
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

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

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 15px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--black);
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.nav-menu > li > a .arrow {
  font-size: 9px;
  transition: transform var(--transition);
}

.nav-menu > li:hover > a .arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 999;
}

.nav-menu > li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 10px 16px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  transition: all var(--transition);
}

.dropdown li:last-child a { border-bottom: none; }

.dropdown li a:hover {
  color: var(--primary);
  background: var(--gray-100);
  padding-left: 20px;
}

/* Search */
.nav-search button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  color: var(--gray-700);
  font-size: 15px;
  transition: color var(--transition);
}

.nav-search button:hover { color: var(--primary); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  z-index: 9999;
  overflow-y: auto;
  padding: 60px 20px 20px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-nav.open { transform: translateX(0); }

.mobile-nav-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--black);
}

.mobile-nav-logo {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.mobile-nav-logo img {
  height: 40px;
  width: auto;
}

.mobile-menu li {
  border-bottom: 1px solid var(--border);
}

.mobile-menu li a {
  display: block;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mobile-menu li a:hover { color: var(--primary); }

/* ============ TRENDING BAR ============ */
.trending-bar {
  background: var(--primary);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  padding: 7px 0;
  overflow: hidden;
  position: relative;
  z-index: 5;
}

.trending-bar .container {
  display: flex;
  align-items: center;
  gap: 0;
}

.trending-label {
  background: var(--black);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  flex-shrink: 0;
  white-space: nowrap;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.trending-label i {
  color: #ff4d4f;
  font-size: 12px;
}

.trending-ticker-wrap {
  flex: 1;
  overflow: hidden;
  margin: 0 14px;
}

.trending-ticker {
  display: inline-flex;
  width: max-content;
  gap: 0;
  animation: ticker 35s linear infinite;
  white-space: nowrap;
}

.trending-ticker:hover {
  animation-play-state: paused;
}

.trending-ticker span {
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  padding: 0 22px;
  cursor: pointer;
  transition: color var(--transition);
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
}

.trending-ticker span:hover {
  color: #ffea79;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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


/* ============ HERO SECTION ============ */
.hero-section {
  padding: 20px 0 24px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 4px;
}

/* Left big article */
.hero-main {
  grid-row: 1 / 3;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.hero-main-img {
  height: 480px;
  position: relative;
  overflow: hidden;
}

.hero-main-img img {
  transition: transform 0.5s ease;
}

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

.hero-main-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  padding: 30px 22px 22px;
}

.hero-main-overlay .category-badge {
  margin-bottom: 10px;
}

.hero-main-overlay h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 10px;
}

.hero-main-overlay h2:hover { color: #f0c0c0; }

.hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
}

.hero-meta .author { font-weight: 600; }
.hero-meta .dot { opacity: 0.5; }

/* Right small articles */
.hero-sub {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.hero-sub-img {
  height: 238px;
  position: relative;
  overflow: hidden;
}

.hero-sub-img img {
  transition: transform 0.5s ease;
}

.hero-sub:hover .hero-sub-img img {
  transform: scale(1.05);
}

.hero-sub-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, transparent 100%);
  padding: 20px 14px 14px;
}

.hero-sub-overlay .category-badge {
  margin-bottom: 7px;
}

.hero-sub-overlay h3 {
  font-family: var(--font-serif);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
}

.hero-sub-overlay h3:hover { color: #f0c0c0; }

.hero-sub-meta {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  margin-top: 6px;
}

/* ============ MAIN CONTENT WRAPPER ============ */
.main-wrapper {
  padding: 28px 0;
}

.main-wrapper .container {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 30px;
  align-items: start;
}

/* ============ JANGAN LEWATKAN SECTION ============ */
.dont-miss-section {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.section-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
}

.tab-label {
  background: var(--primary);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-bottom: 2px solid var(--primary);
  margin-bottom: -2px;
  cursor: pointer;
}

.tab-btn {
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  transition: all var(--transition);
}

.tab-btn:hover, .tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.dont-miss-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Featured article (left large) */
.featured-article {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.featured-article-img {
  position: relative;
  height: 260px;
  overflow: hidden;
  border-radius: 2px;
}

.featured-article-img img {
  transition: transform 0.5s ease;
}

.featured-article-img:hover img { transform: scale(1.04); }

.featured-article h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--black);
  cursor: pointer;
}

.featured-article h3:hover { color: var(--primary); }

.featured-article .meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gray-500);
}

.featured-article .meta .author { color: var(--black); font-weight: 600; }

.featured-article .excerpt {
  font-size: 13.5px;
  color: var(--gray-700);
  line-height: 1.65;
}

/* Small articles list (right) */
.articles-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.article-list-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.article-list-item:first-child { padding-top: 0; }
.article-list-item:last-child { border-bottom: none; }

.article-list-thumb {
  height: 70px;
  overflow: hidden;
  border-radius: 2px;
  flex-shrink: 0;
}

.article-list-thumb img {
  transition: transform 0.4s ease;
}

.article-list-item:hover .article-list-thumb img { transform: scale(1.06); }

.article-list-item h4 {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--black);
  margin-bottom: 4px;
}

.article-list-item h4:hover { color: var(--primary); }

.article-list-item .meta {
  font-size: 11px;
  color: var(--gray-500);
}

/* ============ PAGINATION NAV ============ */
.section-pagination {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.section-pagination button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-700);
  transition: all var(--transition);
}

.section-pagination button:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ============ CATEGORY SECTION (2 cols) ============ */
.category-section {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.category-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.news-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.news-card-img {
  position: relative;
  height: 190px;
  overflow: hidden;
  margin-bottom: 12px;
  border-radius: 2px;
}

.news-card-img img {
  transition: transform 0.4s ease;
}

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

.news-card h3 {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--black);
  margin-bottom: 6px;
}

.news-card:hover h3 { color: var(--primary); }

.news-card .meta {
  font-size: 11.5px;
  color: var(--gray-500);
  margin-bottom: 6px;
}

.news-card .author { color: var(--black); font-weight: 600; }

.news-card .excerpt {
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.6;
}

/* ============ SECTION: 3 COLUMNS ============ */
.three-col-section {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.three-col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.news-card-sm {
  cursor: pointer;
}

.news-card-sm-img {
  position: relative;
  height: 155px;
  overflow: hidden;
  margin-bottom: 10px;
  border-radius: 2px;
}

.news-card-sm-img img {
  transition: transform 0.4s ease;
}

.news-card-sm:hover .news-card-sm-img img { transform: scale(1.06); }

.news-card-sm h4 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--black);
  margin-bottom: 5px;
}

.news-card-sm:hover h4 { color: var(--primary); }

.news-card-sm .meta {
  font-size: 11px;
  color: var(--gray-500);
}

/* ============ HORIZONTAL LIST (Performance style) ============ */
.horizontal-list-section {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.horizontal-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.h-article-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.h-article-item:first-child { padding-top: 0; }
.h-article-item:last-child { border-bottom: none; }

.h-article-thumb {
  height: 90px;
  overflow: hidden;
  border-radius: 2px;
  flex-shrink: 0;
}

.h-article-thumb img {
  transition: transform 0.4s ease;
}

.h-article-item:hover .h-article-thumb img { transform: scale(1.06); }

.h-article-body h4 {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--black);
  margin-bottom: 6px;
}

.h-article-item:hover .h-article-body h4 { color: var(--primary); }

.h-article-body .meta {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 5px;
}

.h-article-body .excerpt {
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.6;
}

/* ============ LATEST ARTICLES - 2 cols ============ */
.latest-section {
  margin-bottom: 20px;
}

.latest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 16px;
}

/* ============ SIDEBAR ============ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-self: stretch;
}

/* ============ STICKY SIDEBAR WRAPPER ============ */
.sidebar-sticky {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

@media (min-width: 1025px) {
  .sidebar-sticky {
    position: sticky;
    top: 24px;
    z-index: 10;
    align-self: start;
  }
}

/* Sidebar Widget */
.widget {
  border: 1px solid var(--border);
  padding: 0;
}

.widget-header {
  background: var(--black);
  padding: 8px 14px;
  display: flex;
  align-items: center;
}

.widget-header h3 {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}

.widget-body {
  padding: 14px;
}

/* Social widget */
.social-widget-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border: 1px solid var(--border);
  background: var(--gray-100);
  transition: background var(--transition);
  cursor: pointer;
}

.social-row:hover { background: var(--gray-200); }

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

.social-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--white);
}

.social-icon.fb  { background: #1877F2; }
.social-icon.tw  { background: #1DA1F2; }
.social-icon.yt  { background: #FF0000; }
.social-icon.ig  { background: #E1306C; }
.social-icon.tk  { background: #000000; }

.social-info .count {
  font-size: 15px;
  font-weight: 800;
  color: var(--black);
  line-height: 1;
}

.social-info .label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
}

.social-action {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
  padding: 3px 8px;
  background: var(--white);
  transition: all var(--transition);
}

.social-row:hover .social-action {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Popular widget */
.popular-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.popular-item {
  display: grid;
  grid-template-columns: 75px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.popular-item:first-child { padding-top: 0; }
.popular-item:last-child { border-bottom: none; }

.popular-thumb {
  height: 55px;
  overflow: hidden;
  border-radius: 2px;
}

.popular-thumb img {
  transition: transform 0.4s ease;
}

.popular-item:hover .popular-thumb img { transform: scale(1.1); }

.popular-body h5 {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--black);
  margin-bottom: 3px;
}

.popular-item:hover .popular-body h5 { color: var(--primary); }

.popular-body .date {
  font-size: 10.5px;
  color: var(--gray-500);
}

/* Comments widget */
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.comment-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  line-height: 1.55;
  cursor: pointer;
}

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

.comment-item .commenter {
  font-weight: 700;
  color: var(--black);
}

.comment-item .on { color: var(--gray-500); }

.comment-item .article-title {
  color: var(--primary);
  font-weight: 600;
  font-size: 12px;
}

/* Category widget */
.category-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.category-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

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

.category-list li a {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  transition: color var(--transition);
}

.category-list li:hover a { color: var(--primary); }

.category-list li .count {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-500);
}

/* ============ FOOTER ============ */
.footer-top {
  background: var(--footer-mid);
  padding: 36px 0 24px;
  border-top: 3px solid var(--primary);
}

.footer-top .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.footer-widget h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-news-item {
  display: grid;
  grid-template-columns: 65px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  cursor: pointer;
}

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

.footer-thumb {
  height: 48px;
  overflow: hidden;
  border-radius: 2px;
}

.footer-thumb img {
  transition: transform 0.4s ease;
}

.footer-news-item:hover .footer-thumb img { transform: scale(1.1); }

.footer-news-body h5 {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  line-height: 1.45;
  margin-bottom: 3px;
  transition: color var(--transition);
}

.footer-news-item:hover .footer-news-body h5 { color: var(--primary); }

.footer-news-body .date {
  font-size: 10.5px;
  color: rgba(255,255,255,0.45);
}

/* Category list in footer */
.footer-cat-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-cat-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  cursor: pointer;
}

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

.footer-cat-list li a {
  font-size: 12.5px;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}

.footer-cat-list li:hover a { color: var(--primary); }

.footer-cat-list li .badge {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
}

/* ============ FOOTER BOTTOM ============ */
.footer-bottom {
  background: var(--footer-bg);
  padding: 32px 0;
  border-top: 3px solid var(--primary);
}

.footer-bottom .container {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.footer-logo img {
  height: 38px;
  width: auto;
  background: rgba(255,255,255,0.08);
  padding: 6px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.footer-logo p {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

.footer-about h5,
.footer-follow h5 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
}

.footer-about p {
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  margin-bottom: 6px;
}

.footer-about a {
  color: var(--primary);
  font-weight: 500;
  font-size: 12.5px;
}

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

.footer-social-icons a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}

.footer-social-icons a:hover { transform: translateY(-2px); opacity: 0.9; }
.footer-social-icons a.fb  { background: #1877F2; }
.footer-social-icons a.ig  { background: #E1306C; }
.footer-social-icons a.tw  { background: #1DA1F2; }
.footer-social-icons a.yt  { background: #FF0000; }
.footer-social-icons a.tk  { background: #333; }

/* ============ FOOTER COPYRIGHT ============ */
.footer-copyright {
  background: #0f0f0f;
  padding: 10px 0;
  text-align: center;
}

.footer-copyright .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-copyright p {
  font-size: 11.5px;
  color: rgba(255,255,255,0.4);
}

.footer-copyright-links {
  display: flex;
  gap: 14px;
}

.footer-copyright-links a {
  font-size: 11.5px;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}

.footer-copyright-links a:hover { color: var(--white); }

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 38px;
  height: 38px;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 888;
  box-shadow: var(--shadow-md);
}

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

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

/* ============ READ MORE LINK ============ */
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  margin-top: 8px;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.read-more:hover { border-bottom-color: var(--primary); color: var(--primary); }

/* ============ SIDE-BY-SIDE LAYOUT for last section ============ */
.two-sections-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.two-sections-row .side-section-right .section-title-plain {
  background: #7B2FBE;
  padding: 5px 10px;
  border: none;
}

.two-sections-row .side-section-right .section-title-plain h2 {
  color: var(--white);
}

/* ============ SEARCH OVERLAY ============ */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.search-overlay.open {
  opacity: 1;
  visibility: visible;
}

.search-overlay-inner {
  width: 600px;
  max-width: 90%;
}

.search-overlay-inner input {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 2px solid rgba(255,255,255,0.5);
  padding: 16px 0;
  font-size: 26px;
  color: var(--white);
  outline: none;
  font-family: var(--font-serif);
}

.search-overlay-inner input::placeholder { color: rgba(255,255,255,0.4); }

.search-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.search-close:hover { opacity: 1; }

/* ============ BREAKING NEWS BANNER ============ */
.breaking-banner {
  background: var(--primary);
  padding: 8px 0;
  overflow: hidden;
  position: relative;
  z-index: 5;
}

.breaking-banner .container {
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
}

.breaking-label {
  background: var(--black);
  color: var(--white);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  flex-shrink: 0;
  margin-right: 14px;
  border-radius: 2px;
  z-index: 2;
  box-shadow: 2px 0 6px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
}

.breaking-track {
  flex: 1;
  overflow: hidden;
  display: flex;
  white-space: nowrap;
}

.breaking-text {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  padding-left: 100%;
  animation: breakingScroll 30s linear infinite;
  will-change: transform;
}

.breaking-banner:hover .breaking-text {
  animation-play-state: paused;
}

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

/* ============ RESPONSIVE ============ */

/* Tablet */
@media (max-width: 1024px) {
  .main-wrapper .container {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .footer-top .container {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-bottom .container {
    grid-template-columns: 1fr 1fr;
  }
  .footer-logo { grid-column: 1 / -1; }
}

/* Mobile 768px */
@media (max-width: 768px) {
  .topbar-right .topbar-links { display: none; }
  .topbar-left .date { display: none; }

  .site-header .header-ad { display: none; }

  .nav-menu { display: none; }
  .hamburger { display: flex; }

  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
  }
  .hero-main { grid-row: 1; }
  .hero-main-img { height: 340px; }
  .hero-sub-img  { height: 220px; }

  .dont-miss-grid {
    grid-template-columns: 1fr;
  }

  .category-section-grid {
    grid-template-columns: 1fr;
  }

  .three-col-grid {
    grid-template-columns: 1fr 1fr;
  }

  .two-sections-row {
    grid-template-columns: 1fr;
  }

  .latest-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .footer-top .container {
    grid-template-columns: 1fr;
  }

  .footer-bottom .container {
    grid-template-columns: 1fr;
  }
}

/* Mobile 480px */
@media (max-width: 480px) {
  .container { padding: 0 14px; }

  .hero-main-img { height: 260px; }
  .hero-main-overlay h2 { font-size: 18px; }
  .hero-sub-img { height: 180px; }

  .three-col-grid {
    grid-template-columns: 1fr;
  }

  .h-article-item {
    grid-template-columns: 100px 1fr;
  }

  .section-tabs {
    flex-wrap: wrap;
  }

  .footer-copyright .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .back-to-top { bottom: 16px; right: 16px; }
}
