/* ============================================================
   FactNukkad — Complete Stylesheet
   Brand:   #95390a | Accent: #e8a55a | BG: #f6f4f0
   Nav/Footer: #000000 (BLACK)
   ============================================================ */

/* --- Reset ------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --brand: #da251d;
  --brand-dark: #af1e17;
  --brand-light: #e24d46;
  --accent: #da251d;
  --accent-dark: #af1e17;
  --accent-light: #e24d46;
  --bg: #f5f5f5;
  --bg-card: #ffffff;
  --bg-card2: #f0f0f0;
  --bg-card3: #e5e5e5;
  --text-primary: #111111;
  --text-muted: #444444;
  --text-light: #888888;
  --border: #e0e0e0;
  --border-dark: #cccccc;
  --nav-bg: #0B1C3B;
  --footer-bg: #0B1C3B;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
  --font-main: 'Poppins', sans-serif;
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.65;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

input,
button,
select,
textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--brand);
  padding: 0.4rem 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-social {
  display: flex;
  gap: 0.75rem;
}

.topbar-social a {
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition);
}

.topbar-social a:hover {
  color: var(--accent-light);
}

/* ============================================================
   MAIN HEADER
   ============================================================ */
.main-header {
  background: var(--bg-card);
  border-bottom: 3px solid var(--brand);
  padding: 0.75rem 0;
  position: static;
  z-index: 1000;
}


.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  flex-shrink: 0;
}

.logo-img {
  height: 60px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 900;
  color: var(--brand);
  letter-spacing: -1px;
  line-height: 1;
}

.logo-sub {
  font-size: 0.68rem;
  color: var(--accent-dark);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
}

.header-ad-slot {
  flex: 1;
  text-align: center;
}

.header-ad-slot img {
  max-height: 80px;
  margin: 0 auto;
  border-radius: var(--radius);
}

/* ============================================================
   RESPONSIVE LOGO TOGGLING & NAV LOGO
   ============================================================ */
@media (min-width: 769px) {
  .topbar, .main-header {
    display: none !important;
  }
}

.desktop-logo {
  display: flex !important;
}

.mobile-logo {
  display: none !important;
}

/* Nav Logo — clean flex layout, no absolute positioning */
.nav-logo {
  display: flex;
  align-items: center;
  margin-right: 1rem;
  flex-shrink: 0;
  padding: 0.25rem 0;
}

.nav-logo .logo-img {
  height: 44px;
  width: auto;
  border-radius: 6px;
  background: #fff;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.nav-logo:hover .logo-img {
  transform: scale(1.05);
}

.nav-logo .logo-text {
  background: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav-logo .logo-main {
  color: var(--brand);
  font-size: 1.3rem;
  line-height: 1.1;
}

.nav-logo .logo-sub {
  color: var(--accent-dark);
  font-size: 0.58rem;
}


/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0.6rem;
  z-index: 1300;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav-close-btn {
  display: none;
}

.main-nav {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}

.nav-inner {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}

.nav-inner::-webkit-scrollbar {
  display: none;
}

.nav-home-link,
.nav-link {
  padding: 0.8rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.8);
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.nav-home-link:hover,
.nav-link:hover,
.nav-link.active {
  color: var(--accent-light);
  border-bottom-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

.nav-search {
  margin-left: auto;
  flex-shrink: 0;
  padding: 0.4rem 0.5rem;
}

.search-form {
  display: flex;
  align-items: center;
}

.search-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.38rem 0.7rem;
  border-radius: 20px 0 0 20px;
  font-size: 0.82rem;
  outline: none;
  width: 150px;
  transition: var(--transition);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
  border-color: var(--accent);
  width: 200px;
}

.search-btn {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 0.38rem 0.85rem;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
  font-size: 0.82rem;
  transition: background var(--transition);
}

.search-btn:hover {
  background: var(--accent-dark);
}

/* ============================================================
   BREAKING NEWS TICKER
   ============================================================ */
.breaking-ticker-bar {
  background: var(--brand);
  border-bottom: 2px solid var(--brand-dark);
  padding: 0.45rem 0;
  overflow: hidden;
}

.breaking-inner {
  display: flex;
  align-items: center;
}

.breaking-label {
  background: #000000;
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.22rem 0.8rem;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-wrapper {
  flex: 1;
  overflow: hidden;
  padding: 0 1rem;
}

.ticker-track {
  display: inline-flex;
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0 1.2rem;
  transition: color var(--transition);
}

.ticker-item:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

.ticker-sep {
  margin-left: 1rem;
  opacity: 0.5;
  color: #fff;
}

.breaking-more {
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
  padding: 0.22rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 700;
}

.breaking-more:hover {
  background: rgba(0, 0, 0, 0.4);
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  border-left: 4px solid var(--brand);
  padding-left: 0.75rem;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-more {
  font-size: 0.78rem;
  color: var(--accent-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.65rem;
  border: 1px solid var(--accent);
  border-radius: 20px;
  transition: all var(--transition);
}

.section-more:hover {
  background: var(--accent);
  color: #fff;
}

/* ============================================================
   NEWS CARDS
   ============================================================ */
.news-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: block;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg-card2);
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-card2), var(--bg-card3));
  color: var(--accent);
  font-size: 2.5rem;
  opacity: 0.7;
}

.card-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: var(--brand);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-badge.breaking {
  background: #c0392b;
}

.card-body {
  padding: 0.85rem;
}

.card-category {
  color: var(--accent-dark);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
}

.card-title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}

.news-card:hover .card-title {
  color: var(--brand);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  color: var(--text-light);
}

.card-meta i {
  color: var(--accent-dark);
  font-size: 0.65rem;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.25rem;
}

.hero-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-slider {
  position: relative;
  height: 460px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88) 50%);
  padding: 2.5rem 1.25rem 1.25rem;
}

.hero-cat {
  color: var(--accent-light);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
}

.hero-title {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 900;
  line-height: 1.4;
  color: #fff;
  margin-bottom: 0.5rem;
}

.hero-title:hover {
  color: var(--accent-light);
}

.hero-meta {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  gap: 1rem;
}

.hero-dots {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.hero-dot.active {
  background: var(--accent);
  transform: scale(1.4);
}

.hero-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-stack .news-card {
  flex: 1;
}

.hero-stack .card-img-wrap {
  aspect-ratio: 16/7;
}

.hero-stack .card-title {
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: 0.85rem;
}

/* ============================================================
   HOMEPAGE CATEGORY SECTIONS
   ============================================================ */
.home-section {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.cat-grid .news-card:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.cat-grid .news-card:first-child .card-img-wrap {
  aspect-ratio: 4/3;
}

.cat-grid .news-card:first-child .card-title {
  font-size: 1rem;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

/* ============================================================
   CONTENT + SIDEBAR
   ============================================================ */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 145px;
}

.sidebar-section {
  margin-bottom: 1.75rem;
}

.sidebar-title {
  font-size: 0.88rem;
  font-weight: 900;
  color: var(--brand);
  border-left: 3px solid var(--accent);
  padding-left: 0.6rem;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sidebar-post {
  display: flex;
  gap: 0.65rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.sidebar-post:last-child {
  border-bottom: none;
}

.sidebar-post:hover {
  padding-left: 3px;
}

.sidebar-thumb {
  width: 75px;
  height: 56px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-card2);
}

.sidebar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-thumb .card-placeholder {
  font-size: 1rem;
}

.sidebar-info {
  flex: 1;
  min-width: 0;
}

.sidebar-post-title {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-primary);
  transition: color var(--transition);
}

.sidebar-post-title:hover {
  color: var(--brand);
}

.sidebar-post-meta {
  font-size: 0.68rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

.ad-box {
  background: var(--bg-card);
  border: 1px dashed var(--border-dark);
  border-radius: var(--radius);
  padding: 0.5rem;
  text-align: center;
}

.ad-box img {
  border-radius: var(--radius);
  margin: 0 auto;
}

.ad-label {
  font-size: 0.62rem;
  color: var(--text-light);
  margin-top: 0.3rem;
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.post-category-link {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.22rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.85rem;
}

.post-title {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.post-meta-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.25rem;
}

.post-meta-bar i {
  margin-right: 0.25rem;
  color: var(--accent-dark);
}

.post-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  color: #fff;
  font-weight: 800;
  flex-shrink: 0;
}

.post-featured-img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow);
}

.post-content {
  font-size: 1rem;
  line-height: 1.9;
  color: #1a1a1a;
}

.post-content p {
  margin-bottom: 1.2rem;
}

.post-content h2,
.post-content h3 {
  color: var(--brand);
  margin: 1.5rem 0 0.6rem;
  font-weight: 900;
}

.post-content img {
  border-radius: var(--radius);
  margin: 1.25rem auto;
  box-shadow: var(--shadow-sm);
}

.post-content a {
  color: var(--brand);
  text-decoration: underline;
}

.post-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 0.75rem 1.1rem;
  background: var(--bg-card3);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.25rem 0;
  font-style: italic;
  color: var(--text-muted);
}

.share-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.5rem 0;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.share-label {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.9rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.share-btn.fb {
  background: #1877f2;
  color: #fff;
}

.share-btn.tw {
  background: #000;
  color: #fff;
}

.share-btn.wa {
  background: #25d366;
  color: #fff;
}

.share-btn:hover {
  filter: brightness(0.88);
  transform: translateY(-1px);
}

/* ============================================================
   CATEGORY / SEARCH PAGE
   ============================================================ */
.page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.5rem 0;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 0;
}

.pag-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}

.pag-btn:hover,
.pag-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ============================================================
   FOOTER — BLACK
   ============================================================ */
.site-footer {
  background: var(--footer-bg);
  border-top: 4px solid var(--accent);
  margin-top: 3rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-top {
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 2rem;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent-light);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  gap: 0.65rem;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.82rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-light);
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-links li {
  padding: 0.28rem 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  transition: all var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--accent-light);
  padding-left: 4px;
}

.footer-newsletter {
  display: flex;
}

.newsletter-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-right: none;
  color: #fff;
  padding: 0.58rem 0.85rem;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 0.82rem;
  outline: none;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.newsletter-input:focus {
  border-color: var(--accent);
}

.newsletter-btn {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 0.58rem 0.95rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background var(--transition);
}

.newsletter-btn:hover {
  background: var(--accent-dark);
}

.footer-bottom {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.9rem 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.78rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================================
   ADMIN — LAYOUT
   ============================================================ */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

.admin-sidebar {
  width: 255px;
  background: #111;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 2000;
  overflow-y: auto;
}

.admin-brand {
  padding: 1.4rem;
  border-bottom: 1px solid rgba(253, 185, 19, 0.25);
  background: var(--brand);
}

.admin-brand-name {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--accent-light);
}

.admin-brand-sub {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.55);
}

.admin-nav {
  padding: 1rem 0;
  flex: 1;
}

.admin-nav-label {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.3);
  padding: 0.7rem 1.4rem 0.25rem;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.68rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  transition: all var(--transition);
  border-left: 3px solid transparent;
}

.admin-nav-link i {
  width: 18px;
  text-align: center;
  font-size: 0.88rem;
}

.admin-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.admin-nav-link.active {
  color: var(--accent-light);
  border-left-color: var(--accent);
  background: rgba(253, 185, 19, 0.1);
}

.admin-user {
  padding: 0.9rem 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.admin-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.88rem;
  color: #fff;
  flex-shrink: 0;
}

.admin-user-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

.admin-user-role {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
}

.admin-logout {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1rem;
  transition: color var(--transition);
}

.admin-logout:hover {
  color: var(--accent-light);
}

.admin-main {
  margin-left: 255px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Admin hamburger: hidden on desktop, visible when sidebar collapses */
.admin-menu-toggle {
  display: none;
}

@media (max-width: 1100px) {
  .admin-menu-toggle {
    display: flex;
  }
}

.admin-topbar {
  background: var(--bg-card);
  border-bottom: 2px solid var(--border);
  padding: 0.9rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.admin-page-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--brand);
}

.admin-content {
  padding: 1.75rem;
  flex: 1;
}

/* Stat cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.stat-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.stat-icon.red {
  background: rgba(218, 37, 29, 0.12);
  color: var(--brand);
}

.stat-icon.blue {
  background: rgba(52, 152, 219, 0.12);
  color: #2471a3;
}

.stat-icon.green {
  background: rgba(39, 174, 96, 0.12);
  color: #1e8449;
}

.stat-icon.amber {
  background: rgba(253, 185, 19, 0.18);
  color: var(--accent-dark);
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--brand);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  font-weight: 600;
}

.admin-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.admin-table-header {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card3);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  background: var(--bg-card2);
  padding: 0.7rem 0.9rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  text-align: left;
  border-bottom: 2px solid var(--border);
}

.admin-table td {
  padding: 0.8rem 0.9rem;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: var(--bg-card3);
}

.badge {
  display: inline-block;
  padding: 0.18rem 0.6rem;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 800;
}

.badge-green {
  background: rgba(39, 174, 96, 0.1);
  color: #1e8449;
  border: 1px solid rgba(39, 174, 96, 0.3);
}

.badge-red {
  background: rgba(192, 57, 43, 0.08);
  color: #c0392b;
  border: 1px solid rgba(192, 57, 43, 0.25);
}

.badge-amber {
  background: rgba(253, 185, 19, 0.15);
  color: #b5570f;
  border: 1px solid rgba(253, 185, 19, 0.4);
}

.badge-blue {
  background: rgba(52, 152, 219, 0.1);
  color: #2471a3;
  border: 1px solid rgba(52, 152, 219, 0.25);
}

.action-btns {
  display: flex;
  gap: 0.4rem;
}

.btn-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-icon.edit {
  background: rgba(52, 152, 219, 0.1);
  color: #2471a3;
  border: 1px solid rgba(52, 152, 219, 0.2);
}

.btn-icon.delete {
  background: rgba(192, 57, 43, 0.08);
  color: #c0392b;
  border: 1px solid rgba(192, 57, 43, 0.2);
}

.btn-icon:hover {
  filter: brightness(0.82);
  transform: scale(1.1);
}

/* Forms */
.form-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  background: var(--bg-card3);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 0.6rem 0.85rem;
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(218, 37, 29, 0.08);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
}

.checkbox-group input[type=checkbox] {
  accent-color: var(--brand);
  width: 17px;
  height: 17px;
  cursor: pointer;
}

.checkbox-group label {
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-dark);
}

.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-danger {
  background: rgba(192, 57, 43, 0.08);
  color: #c0392b;
  border: 1px solid rgba(192, 57, 43, 0.25);
}

.btn-danger:hover {
  background: #c0392b;
  color: #fff;
}

.btn-sm {
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
}

.alert {
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius);
  margin-bottom: 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.alert-success {
  background: rgba(39, 174, 96, 0.1);
  color: #1e8449;
  border: 1px solid rgba(39, 174, 96, 0.3);
}

.alert-danger {
  background: rgba(192, 57, 43, 0.08);
  color: #c0392b;
  border: 1px solid rgba(192, 57, 43, 0.25);
}

.alert-warning {
  background: rgba(253, 185, 19, 0.12);
  color: #9a6010;
  border: 1px solid rgba(253, 185, 19, 0.35);
}

.admin-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.admin-login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 4px solid var(--brand);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}

.admin-login-logo {
  text-align: center;
  margin-bottom: 1.75rem;
}

.admin-login-logo .brand {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--brand);
}

.admin-login-logo p {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 0.25rem;
}

/* ============================================================
   MOBILE NAV OVERLAY
   ============================================================ */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1050;
  backdrop-filter: blur(2px);
}

.nav-overlay.show {
  display: block;
}

/* ============================================================
   RESPONSIVE — COMPREHENSIVE
   ============================================================ */

/* ============================================================
   CONTENT + SIDEBAR GRID (used on homepage via class)
   ============================================================ */
.content-sidebar-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

/* ============================================================
   CARD ENTRANCE ANIMATION
   ============================================================ */
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.news-card {
  animation: cardFadeIn 0.5s ease both;
}

/* Stagger cards */
.cat-grid .news-card:nth-child(1) { animation-delay: 0s; }
.cat-grid .news-card:nth-child(2) { animation-delay: 0.05s; }
.cat-grid .news-card:nth-child(3) { animation-delay: 0.1s; }
.cat-grid .news-card:nth-child(4) { animation-delay: 0.15s; }
.cat-grid .news-card:nth-child(5) { animation-delay: 0.2s; }
.cat-grid .news-card:nth-child(6) { animation-delay: 0.25s; }
.cat-grid .news-card:nth-child(7) { animation-delay: 0.3s; }

/* ============================================================
   RESPONSIVE — COMPREHENSIVE
   ============================================================ */

/* Large Tablet / Small Desktop */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .hero-stack .card-img-wrap {
    aspect-ratio: 16/9;
  }

  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cat-grid .news-card:first-child {
    grid-column: span 2;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .content-with-sidebar,
  .content-sidebar-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  /* Admin */
  .admin-sidebar {
    transform: translateX(-260px);
    transition: transform 0.3s ease;
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-main {
    margin-left: 0;
  }
}

/* Mobile */
@media (max-width: 768px) {

  /* --- Global --- */
  .container {
    padding: 0 0.85rem;
  }

  /* --- Topbar --- */
  .topbar {
    display: none;
  }

  /* --- Header --- */
  .main-header {
    padding: 0.55rem 0;
    position: sticky;
    top: 0;
    box-shadow: var(--shadow);
    display: block !important;
  }

  .desktop-logo {
    display: none !important;
  }

  .mobile-logo {
    display: flex !important;
  }

  .header-ad-slot {
    display: none;
  }

  .logo-img {
    height: 42px;
  }

  .logo-main {
    font-size: 1.35rem;
  }

  .menu-toggle {
    display: flex;
  }

  /* --- Nav: slide-in from right as drawer --- */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    left: auto;
    width: min(300px, 85vw);
    height: 100%;
    z-index: 1100;
    overflow-y: auto;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 1rem;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
  }

  .main-nav.open {
    right: 0;
  }

  /* Hide nav-logo inside mobile drawer */
  .main-nav .nav-logo {
    display: none !important;
  }

  .nav-container {
    flex-direction: column;
  }

  .nav-inner {
    flex-direction: column;
    overflow-x: visible;
    padding: 3rem 0 1.5rem;
    align-items: stretch;
  }

  .nav-home-link,
  .nav-link {
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid transparent;
    width: 100%;
    display: block;
  }

  .nav-home-link:hover,
  .nav-link:hover,
  .nav-link.active {
    border-left-color: var(--accent);
    background: rgba(255, 255, 255, 0.06);
    padding-left: 1.75rem;
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  .nav-search {
    padding: 1rem 1.25rem;
    margin-left: 0;
    width: 100%;
  }

  .search-form {
    width: 100%;
  }

  .search-input {
    flex: 1;
    width: auto;
  }

  .search-input:focus {
    width: auto;
  }

  /* Nav Close button */
  .nav-close-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease;
  }

  .nav-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
  }

  /* --- Ticker --- */
  .breaking-more {
    display: none;
  }

  .breaking-label {
    padding: 0.18rem 0.55rem;
    font-size: 0.68rem;
  }

  .ticker-item {
    font-size: 0.78rem;
    padding: 0 0.85rem;
  }

  /* --- Hero --- */
  .hero-section {
    padding: 0.75rem 0 0;
  }

  .hero-grid {
    gap: 0.75rem;
  }

  .hero-slider {
    height: 220px;
  }

  /* Show hero stack as horizontal scroll strip on mobile */
  .hero-stack {
    display: flex;
    overflow-x: auto;
    gap: 0.65rem;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .hero-stack::-webkit-scrollbar {
    display: none;
  }

  .hero-stack .news-card {
    min-width: 200px;
    max-width: 220px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .hero-stack .card-img-wrap {
    aspect-ratio: 16/10;
  }

  .hero-overlay {
    padding: 1.25rem 0.85rem 0.85rem;
  }

  .hero-title {
    font-size: 0.92rem;
  }

  .hero-meta {
    font-size: 0.65rem;
    gap: 0.5rem;
  }

  .hero-cat {
    font-size: 0.65rem;
    margin-bottom: 0.25rem;
  }

  /* --- Category grids --- */
  .cat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .cat-grid .news-card:first-child {
    grid-column: span 2;
  }

  .cat-grid .news-card:first-child .card-img-wrap {
    aspect-ratio: 16/9;
  }

  .home-section {
    padding: 1.25rem 0;
  }

  .section-title {
    font-size: 0.92rem;
  }

  .section-more {
    font-size: 0.7rem;
    padding: 0.18rem 0.5rem;
  }

  /* --- Cards --- */
  .card-body {
    padding: 0.65rem;
  }

  .card-title {
    font-size: 0.82rem;
    -webkit-line-clamp: 2;
  }

  .card-meta {
    font-size: 0.65rem;
    gap: 0.4rem;
  }

  .card-category {
    font-size: 0.62rem;
  }

  /* --- Page grid --- */
  .page-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    padding: 0.85rem 0;
  }

  /* --- Sidebar --- */
  .content-with-sidebar,
  .content-sidebar-grid {
    gap: 1.25rem;
  }

  .sidebar-section:first-child {
    border-top: 2px solid var(--border);
    padding-top: 1.25rem;
  }

  /* --- Post --- */
  .post-title {
    font-size: 1.15rem;
  }

  .post-meta-bar {
    gap: 0.6rem;
    font-size: 0.75rem;
  }

  .post-featured-img {
    border-radius: var(--radius);
    max-height: 260px;
  }

  .post-content {
    font-size: 0.95rem;
  }

  .share-bar {
    gap: 0.4rem;
  }

  .share-btn {
    padding: 0.32rem 0.65rem;
    font-size: 0.72rem;
  }

  /* Hide share button text, keep icon on mobile */
  .share-btn .share-text {
    display: none;
  }

  /* --- Footer --- */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-top {
    padding: 1.75rem 0 1.25rem;
  }

  .site-footer {
    margin-top: 1.5rem;
  }

  /* --- Stats grid --- */
  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-value {
    font-size: 1.35rem;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  /* --- Admin --- */
  .admin-content {
    padding: 1rem;
  }

  .admin-topbar {
    padding: 0.7rem 1rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-section {
    padding: 1.1rem;
  }

  .admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-table {
    min-width: 580px;
  }

  .admin-page-title {
    font-size: 0.95rem;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .container {
    padding: 0 0.65rem;
  }

  .cat-grid {
    grid-template-columns: 1fr;
  }

  .cat-grid .news-card:first-child {
    grid-column: span 1;
  }

  .page-grid {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    height: 185px;
  }

  .hero-stack .news-card {
    min-width: 170px;
    max-width: 190px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .footer-newsletter {
    flex-direction: column;
    gap: 0.4rem;
  }

  .newsletter-input {
    border-radius: var(--radius);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
  }

  .newsletter-btn {
    border-radius: var(--radius);
  }

  .admin-login-card {
    padding: 1.5rem 1rem;
  }

  .stat-grid {
    gap: 0.5rem;
  }

  .stat-value {
    font-size: 1.1rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }

  .post-meta-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .share-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Ultra-small phones */
@media (max-width: 380px) {
  .hero-slider {
    height: 160px;
  }

  .card-badge {
    font-size: 0.58rem;
    padding: 0.12rem 0.35rem;
  }

  .logo-main {
    font-size: 1.15rem;
  }

  .logo-img {
    height: 36px;
  }

  .breaking-label {
    font-size: 0.6rem;
    padding: 0.12rem 0.4rem;
  }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.d-flex {
  display: flex;
}

.align-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 {
  gap: 0.5rem;
}

.gap-2 {
  gap: 1rem;
}

.no-posts {
  grid-column: 1/-1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-light);
}

.no-posts i {
  font-size: 2.5rem;
  margin-bottom: 0.85rem;
  display: block;
  color: var(--accent);
  opacity: 0.5;
}

.flash-alert {
  animation: fadeOut 0.5s ease 3.5s forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    pointer-events: none;
  }
}