/*
Theme Name: HULAKTV News
Theme URI: https://hulaktv.local
Author: HULAKTV
Author URI: https://hulaktv.local
Description: A fast and clean news WordPress theme for HULAKTV.
Version: 1.3.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: hulaktv-news
*/

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #111111;
  --muted: #5f6368;
  --primary: #b80000;
  --primary-dark: #900000;
  --border: #e6e6e6;
  --dark: #1d1d1d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Noto Sans Devanagari", Mangal, Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(1200px, 94%);
  margin: 0 auto;
}

.top-strip {
  background: var(--dark);
  color: #fff;
  font-size: 14px;
}

.top-strip .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
}

.brand-row {
  border-bottom: 4px solid var(--primary);
  padding: 14px 0;
}

.brand-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  display: inline-block;
  /* background: var(--primary); */
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.3px;
  font-size: 26px;
  padding: 8px 12px;
  line-height: 1;
}

.brand-logo--icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1.2;
}

.brand-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
}

.brand-logo-icon--custom {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

.site-description {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.main-nav {
  background: #2a2a2a;
}

.main-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 20px;
  overflow-x: auto;
}

.main-nav a {
  display: inline-block;
  color: #fff;
  font-weight: 600;
  padding: 12px 0;
  white-space: nowrap;
}

.main-nav .current-menu-item a,
.main-nav a:hover {
  color: #fff;
  border-bottom: 3px solid var(--primary);
}

.news-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 28px;
  margin: 26px auto;
}

.content-area,
.widget-area,
.section {
  background: var(--surface);
}

.content-area--full {
  grid-column: 1 / -1;
  width: 100%;
  margin-bottom: 20px;
}

.section-title {
  font-size: 28px;
  margin: 0 0 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}

.featured-post {
  margin-bottom: 18px;
}

/* Container styling */
.breaking-ticker {
  display: none;
  align-items: center;
  background: #f1f1f1; /* Light grey background */
  border-top: 2px solid #e11d48; /* Red accent */
  overflow: hidden; /* Hides the text outside the bar */
  height: 40px;
  font-family: sans-serif;
}

/* Static 'Breaking' Label (Nepali: ब्रेकिङ) */
.breaking-ticker strong {
  background: #e11d48;
  color: #fff;
  padding: 0 15px;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 10;
  white-space: nowrap;
}

/* The Moving Part */
.ticker-items {
  display: flex;
  white-space: nowrap;
  padding-left: 100%; /* Starts the text from the far right */
  animation: marquee 30s linear infinite;
}

/* Individual News Links */
.ticker-items a {
  color: #333;
  text-decoration: none;
  /*padding-right: 50px; */
  font-weight: 500;
}

.ticker-items a:hover {
  color: #e11d48;
  text-decoration: underline;
}

.ticker-separator {
  color: #e11d48; /* Matches your 'Breaking' red */
  padding: 0 15px; /* Adjusts spacing between news items */
  font-weight: bold;
}

.ticker-separator:last-child {
  display: none;
}

/* Pause animation on hover */
.breaking-ticker:hover .ticker-items {
  animation-play-state: paused;
}

/* The Animation Logic */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* 2. Show only on Desktop (1024px and up) */
@media screen and (min-width: 1024px) {
  .breaking-ticker {
      display: flex; /* Or 'block' depending on your layout */
     
  }
}


.top-stories-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: 18px;
  margin-bottom: 14px;
}

.top-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.top-card h3 {
  margin: 9px 0 0;
  font-size: 22px;
  line-height: 1.35;
}

.most-read {
  border-left: 1px solid var(--border);
  padding-left: 14px;
}

.most-read ol {
  margin: 0;
  padding-left: 20px;
}

.most-read li {
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.45;
}

.category-block {
  margin-top: 24px;
}

.featured-post .entry-title {
  margin: 14px 0 8px;
  font-size: 38px;
  line-height: 1.2;
}

.entry-meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
}

.post-list { display: grid; gap: 0; }

.post-list article {
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.post-list article:first-child {
  border-top: 0;
  padding-top: 0;
}

.loop-title {
  margin: 0 0 6px;
  font-size: 27px;
  line-height: 1.3;
}

.excerpt { margin: 0; }

.widget-area {
  border-left: 1px solid var(--border);
  padding-left: 18px;
}

.widget {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.widget:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.widget-title {
  margin: 0 0 8px;
  font-size: 21px;
}

.search-form {
  display: flex;
  gap: 6px;
}

.search-field,
.search-submit,
input[type="text"],
input[type="email"],
textarea {
  border: 1px solid #c9c9c9;
  border-radius: 0;
  padding: 8px 10px;
  font: inherit;
}

.search-field { flex: 1; min-width: 160px; }

.search-submit,
button,
input[type="submit"] {
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 0;
  padding: 8px 12px;
  cursor: pointer;
}

.search-submit:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--primary-dark);
}

.pagination { margin-top: 20px; }

.pagination .nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  border: 1px solid var(--border);
  padding: 6px 10px;
  color: var(--text);
}

.pagination .current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.site-footer {
  margin-top: 28px;
  background: var(--dark);
  color: #d8d8d8;
}

.footer-inner {
  padding: 20px 0;
  font-size: 14px;
}

.footer-inner a { color: #fff; }

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

.footer-heading {
  margin: 0 0 12px;
  font-size: 18px;
  color: #fff;
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-social-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.footer-social-list a {
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
}

.footer-social-list a:hover {
  border-bottom-color: #fff;
}

.footer-bottom {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: #d8d8d8;
}

.footer-icon {
  margin-right: 8px;
  color: #fff;
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 600px) {
  .footer-inner {
    padding: 16px 0;
    font-size: 13px;
  }

  .footer-heading {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .footer-list {
    gap: 6px;
  }

  .footer-social-list {
    gap: 10px 14px;
  }

  .footer-icon {
    margin-right: 6px;
  }

  .footer-bottom {
    margin-top: 18px;
    padding-top: 14px;
  }
}

@media (min-width: 1200px) {
  .footer-grid {
    gap: 34px;
  }
}

.home-embed-section {
  margin-top: 28px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.embed-stack {
  display: grid;
  gap: 22px;
}

.embed-item {
  border: 1px solid var(--border);
  padding: 12px;
  background: #fafafa;
}

.embed-item iframe {
  max-width: 100%;
}

.embed-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}

.embed-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.fb-page-plugin-wrap {
  min-height: 200px;
  overflow: hidden;
}

.fb-page-plugin-wrap .fb-page,
.fb-page-plugin-wrap iframe {
  max-width: 100%;
}

.embed-fallback {
  margin: 0;
  font-size: 16px;
}

.home-share-section {
  margin-top: 28px;
  padding: 16px 0 8px;
  border-top: 1px solid var(--border);
}

.home-share-lead {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.share-btn {
  display: inline-block;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
}

.share-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.share-btn--fb:hover { color: #1877f2; border-color: #1877f2; }
.share-btn--x:hover { color: #000; border-color: #000; }
.share-btn--wa:hover { color: #25d366; border-color: #25d366; }
.share-btn--tg:hover { color: #0088cc; border-color: #0088cc; }

.share-btn--copy {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}

.share-btn--copy:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.single-share-wrap {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.share-inline-title {
  margin: 0 0 10px;
  font-size: 18px;
}

@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr; }
  .top-stories-layout,
  .top-grid {
    grid-template-columns: 1fr;
  }
  .most-read {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 14px;
  }
  .widget-area {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 20px;
  }
  .featured-post .entry-title { font-size: 30px; }
  .loop-title { font-size: 24px; }

  /* Header/nav responsiveness */
  .brand-wrap {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .search-form {
    flex-wrap: wrap;
    gap: 10px;
  }

  .search-field {
    min-width: 140px;
  }

  .main-nav ul {
    flex-wrap: wrap;
    gap: 12px;
    overflow-x: visible;
  }

  .main-nav a {
    white-space: normal;
    padding: 10px 8px;
  }

  /* Content typography/layout */
  .section-title { font-size: 24px; }

  .breaking-ticker {
    flex-wrap: wrap;
  }

  .top-card h3 {
    font-size: 20px;
  }

  .most-read li {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .container { width: 96%; }

  .section-title { font-size: 20px; }
  .loop-title { font-size: 20px; }
  .top-card h3 { font-size: 18px; }

  .breaking-ticker strong {
    font-size: 13px;
  }

  .ticker-items a {
    font-size: 14px;
  }

  .ticker-items a::after {
    margin-left: 8px;
  }
}

@media (min-width: 1400px) {
  .news-grid {
    gap: 34px;
    margin: 34px auto;
  }

  .top-stories-layout {
    gap: 22px;
  }

  .top-grid {
    gap: 20px;
  }
}
