/* =============================================
   NEP DAILY FACTS NEWS – MAIN STYLESHEET
   ============================================= */

:root {
  --red:       #c0392b;
  --red-dark:  #962d22;
  --red-light: #e74c3c;
  --dark:      #1a1a1a;
  --dark2:     #2c2c2c;
  --mid:       #555555;
  --light-bg:  #f5f5f5;
  --border:    #e0e0e0;
  --white:     #ffffff;
  --politics:  #c0392b;
  --business:  #27ae60;
  --society:   #2980b9;
  --sports:    #e67e22;
  --entertain: #8e44ad;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans Pro', sans-serif;
  --font-art:  'Merriweather', Georgia, serif;
}

* { box-sizing: border-box; }
body { font-family: var(--font-body); background: var(--light-bg); color: var(--dark); font-size: 15px; }
a { color: var(--dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--red); text-decoration: none; }
img { max-width: 100%; }

/* ---- TOP BAR ---- */
#top-bar {
  background: var(--dark2);
  color: #aaa;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 2px solid var(--red);
}
#top-bar a { color: #aaa; margin: 0 6px; font-size: 13px; }
#top-bar a:hover { color: var(--red); }
.weather-tag { color: #ccc; }
.topbar-link { padding: 2px 6px; border-radius: 2px; }
.topbar-link.active-lang { background: var(--red); color: #fff !important; }

/* ---- HEADER ---- */
#main-header { background: var(--white); border-bottom: 1px solid var(--border); }
.logo-link { display: inline-block; }
.logo-wrap { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 46px; height: 46px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-head);
  font-size: 26px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main { font-family: var(--font-head); font-size: 20px; font-weight: 800; color: var(--dark); letter-spacing: -0.5px; }
.logo-sub  { font-family: var(--font-body); font-size: 11px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 1.5px; }
.header-ad {
  height: 80px; border: 2px dashed var(--border);
  display: flex; align-items: center; justify-content: center;
  color: #bbb; font-size: 12px; border-radius: 4px;
  background: #fafafa;
}
.header-search { border: 1px solid var(--border); border-radius: 3px; overflow: hidden; }
.header-search input { border: none; padding: 6px 10px; font-size: 13px; outline: none; width: 180px; }
.header-search button { background: var(--red); border: none; color: #fff; padding: 6px 12px; cursor: pointer; }
.header-search button:hover { background: var(--red-dark); }

/* ---- NAVIGATION ---- */
#main-nav {
  background: var(--dark);
  padding: 0;
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
#main-nav .navbar-nav .nav-link {
  color: #ddd !important;
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  padding: 14px 14px !important;
  transition: background 0.2s, color 0.2s;
}
#main-nav .navbar-nav .nav-item.active .nav-link,
#main-nav .navbar-nav .nav-link:hover { color: #fff !important; background: var(--red); }
#main-nav .navbar-toggler { border: none; color: #fff; background: none; }
.navbar-text { color: #aaa; font-size: 12px; font-weight: 700; letter-spacing: 1px; }
#nav-live-dot {
  display: inline-block; width: 8px; height: 8px;
  background: var(--red); border-radius: 50%;
  animation: pulse 1.2s infinite;
  margin-right: 4px;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* ---- BREAKING NEWS TICKER ---- */
#ticker-wrap {
  background: #fff3f3;
  border-bottom: 2px solid var(--red);
  padding: 8px 0;
  overflow: hidden;
}
.ticker-label {
  background: var(--red); color: #fff;
  font-size: 11px; font-weight: 800;
  padding: 3px 10px; letter-spacing: 1px;
  white-space: nowrap; border-radius: 2px;
}
.ticker-track-wrap { overflow: hidden; }
.ticker-track {
  white-space: nowrap;
  animation: ticker 35s linear infinite;
  font-size: 13px; font-weight: 600; color: var(--dark2);
}
@keyframes ticker { from { transform: translateX(100%); } to { transform: translateX(-100%); } }
#ticker-wrap:hover .ticker-track { animation-play-state: paused; }

/* ---- CATEGORY BADGES ---- */
.cat-badge {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 3px 8px; border-radius: 2px; color: #fff;
  position: absolute; top: 10px; left: 10px; z-index: 2;
}
.badge-politics    { background: var(--politics); }
.badge-business    { background: var(--business); }
.badge-society     { background: var(--society); }
.badge-sports      { background: var(--sports); }
.badge-entertainment { background: var(--entertain); }

/* ---- HERO SECTION ---- */
.hero-card { border: none; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.08); background: #fff; }
.hero-img-wrap { position: relative; overflow: hidden; }
.hero-img { width: 100%; height: 320px; object-fit: cover; transition: transform 0.4s; }
.hero-card:hover .hero-img { transform: scale(1.03); }
.hero-body { padding: 18px 20px; }
.hero-title { font-family: var(--font-head); font-size: 22px; font-weight: 800; line-height: 1.3; margin-bottom: 10px; }
.hero-title a { color: var(--dark); }
.hero-title a:hover { color: var(--red); }
.hero-excerpt { font-size: 14px; color: var(--mid); line-height: 1.6; }

/* ---- SIDE STORY CARDS ---- */
.side-story-card { border: none; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); background: #fff; transition: box-shadow 0.3s; }
.side-story-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.side-img-wrap { position: relative; overflow: hidden; }
.side-img-wrap img { width: 100%; height: 160px; object-fit: cover; transition: transform 0.4s; }
.side-story-card:hover .side-img-wrap img { transform: scale(1.05); }
.side-story-card h5 { font-family: var(--font-head); font-size: 14px; font-weight: 700; line-height: 1.4; margin: 0; }
.side-story-card h5 a { color: var(--dark); }
.side-story-card h5 a:hover { color: var(--red); }

/* ---- META ROW ---- */
.meta-row { font-size: 12px; color: #888; margin-top: 8px; }
.meta-row span { margin-right: 14px; }
.meta-row i { margin-right: 3px; }

/* ---- SECTION HEADERS ---- */
.section-block { }
.section-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 3px solid var(--red); margin-bottom: 18px; padding-bottom: 8px; }
.section-title { font-family: var(--font-head); font-size: 20px; font-weight: 800; margin: 0; color: var(--dark); position: relative; }
.section-title::before { content: ''; display: inline-block; width: 4px; height: 22px; background: var(--red); margin-right: 10px; vertical-align: middle; border-radius: 2px; }
.politics-title::before    { background: var(--politics); }
.sports-title::before      { background: var(--sports); }
.entertainment-title::before { background: var(--entertain); }
.view-all { font-size: 12px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.view-all:hover { color: var(--red-dark); }

/* ---- NEWS CARDS (GRID) ---- */
.news-card { border: none; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); background: #fff; height: 100%; transition: box-shadow 0.3s, transform 0.3s; }
.news-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.12); transform: translateY(-3px); }
.news-img-wrap { position: relative; overflow: hidden; }
.news-img-wrap img { width: 100%; height: 180px; object-fit: cover; transition: transform 0.4s; }
.news-card:hover .news-img-wrap img { transform: scale(1.05); }
.news-title { font-family: var(--font-head); font-size: 15px; font-weight: 700; line-height: 1.4; }
.news-title a { color: var(--dark); }
.news-title a:hover { color: var(--red); }
.news-excerpt { font-size: 13px; color: var(--mid); line-height: 1.5; }

/* ---- NEWS CARD SMALL ---- */
.news-card-sm { border: none; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,0.05); background: #fff; height: 100%; transition: box-shadow 0.3s; }
.news-card-sm:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.1); }
.news-card-sm img { width: 100%; height: 140px; object-fit: cover; }
.news-card-sm h6 { font-size: 13px; font-weight: 700; line-height: 1.4; }
.news-card-sm h6 a { color: var(--dark); }
.news-card-sm h6 a:hover { color: var(--red); }

/* ---- FEATURE LIST CARD ---- */
.feature-list-card { border: none; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.07); background: #fff; }
.feature-list-card img { width: 100%; height: 200px; object-fit: cover; }
.feature-list-card h5 { font-family: var(--font-head); font-size: 15px; font-weight: 700; }
.feature-list-card h5 a { color: var(--dark); }
.feature-list-card h5 a:hover { color: var(--red); }

/* ---- LIST NEWS ---- */
.list-news { list-style: none; padding: 0; margin: 0; }
.list-news li { display: flex; justify-content: space-between; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 13px; line-height: 1.5; gap: 8px; }
.list-news li:last-child { border-bottom: none; }
.list-news li a { color: var(--dark); flex: 1; }
.list-news li a:hover { color: var(--red); }
.list-cat { font-size: 10px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 0.5px; margin-right: 6px; }
.list-time { font-size: 11px; color: #999; white-space: nowrap; flex-shrink: 0; }

/* ---- SIDEBAR ---- */
#sidebar { }
.sidebar-widget { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.widget-header { background: var(--dark); padding: 10px 16px; }
.widget-title { font-family: var(--font-head); font-size: 15px; font-weight: 800; color: #fff; margin: 0; }
.sidebar-widget > .widget-title { padding: 12px 16px; background: var(--dark); color: #fff; font-family: var(--font-head); font-size: 15px; font-weight: 800; margin: 0; }
.sidebar-ad { height: 250px; display: flex; align-items: center; justify-content: center; color: #bbb; font-size: 12px; border: 2px dashed var(--border); background: #fafafa; box-shadow: none; }

/* Most Read */
.most-read-list { list-style: none; padding: 12px 16px; margin: 0; counter-reset: item; }
.most-read-list li { counter-increment: item; display: flex; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; line-height: 1.5; gap: 10px; }
.most-read-list li:last-child { border-bottom: none; }
.most-read-list li::before { content: counter(item); font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--border); line-height: 1; min-width: 22px; flex-shrink: 0; }
.most-read-list li a { color: var(--dark); }
.most-read-list li a:hover { color: var(--red); }

/* Video List */
.video-list { padding: 12px 16px; }
.video-thumb { position: relative; }
.video-thumb img { width: 100%; height: 130px; object-fit: cover; border-radius: 4px; }
.play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 40px; height: 40px; background: rgba(192,57,43,0.85); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; cursor: pointer; transition: background 0.2s;
}
.play-btn:hover { background: var(--red); }
.video-caption { font-size: 12px; font-weight: 600; margin-top: 6px; color: var(--dark2); }

/* Social Follow */
.social-follow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 16px; }
.social-btn { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 4px; color: #fff !important; font-size: 12px; font-weight: 600; transition: opacity 0.2s; }
.social-btn:hover { opacity: 0.88; color: #fff; }
.social-btn.facebook  { background: #1877f2; }
.social-btn.twitter   { background: #1da1f2; }
.social-btn.youtube   { background: #ff0000; }
.social-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-btn i { font-size: 16px; }
.social-btn small { display: block; font-size: 10px; font-weight: 400; opacity: 0.85; }

/* Newsletter */
.newsletter-widget { padding: 16px; }
.newsletter-widget p { font-size: 13px; color: var(--mid); margin: 0; }
.btn-subscribe { background: var(--red); color: #fff; font-size: 13px; font-weight: 700; border: none; padding: 6px 14px; }
.btn-subscribe:hover { background: var(--red-dark); color: #fff; }

/* ---- BREADCRUMB ---- */
.breadcrumb-bar { background: #fff; border-bottom: 1px solid var(--border); padding: 8px 0; }
.breadcrumb { background: none; padding: 0; font-size: 12px; margin: 0; }
.breadcrumb-item a { color: var(--red); }
.breadcrumb-item.active { color: #777; }

/* ---- ARTICLE PAGE ---- */
.article-body { background: #fff; border-radius: 6px; padding: 28px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.article-title { font-family: var(--font-head); font-size: 28px; font-weight: 800; line-height: 1.3; margin-bottom: 14px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: #888; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.article-meta strong { color: var(--dark); }
.article-meta i { margin-right: 4px; color: var(--red); }
.article-share { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn { font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 3px; color: #fff !important; display: inline-flex; align-items: center; gap: 5px; transition: opacity 0.2s; }
.share-btn:hover { opacity: 0.85; color: #fff; }
.share-btn.fb { background: #1877f2; }
.share-btn.tw { background: #1da1f2; }
.share-btn.wa { background: #25d366; }
.share-btn.copy { background: var(--mid); }
.article-figure { margin: 20px 0; }
.article-figure img { width: 100%; border-radius: 4px; }
figcaption { font-size: 12px; color: #888; margin-top: 6px; font-style: italic; }
.article-content { font-family: var(--font-art); font-size: 16px; line-height: 1.85; color: #333; }
.article-content p { margin-bottom: 18px; }
.article-content h2 { font-family: var(--font-head); font-size: 20px; font-weight: 800; margin: 28px 0 12px; color: var(--dark); border-left: 4px solid var(--red); padding-left: 12px; }
.article-quote { border-left: 4px solid var(--red); background: #fef9f9; padding: 16px 20px; margin: 24px 0; font-size: 17px; font-style: italic; color: var(--dark2); }
.article-quote cite { display: block; margin-top: 8px; font-size: 13px; font-style: normal; font-weight: 700; color: var(--red); }
.article-tags { padding-top: 14px; border-top: 1px solid var(--border); }
.tag { display: inline-block; background: var(--light-bg); border: 1px solid var(--border); font-size: 12px; padding: 3px 10px; border-radius: 20px; margin: 3px 3px; color: var(--mid); }
.tag:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ---- COMMENTS ---- */
.comments-section { background: #fff; border-radius: 6px; padding: 24px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.comment-count { font-family: var(--font-body); font-size: 15px; color: #888; }
.comment-form .form-control { border-color: var(--border); font-size: 14px; }
.btn-comment { background: var(--red); color: #fff; font-weight: 700; border: none; padding: 8px 22px; border-radius: 3px; }
.btn-comment:hover { background: var(--red-dark); color: #fff; }
.comment-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.comment-item:last-child { border-bottom: none; }
.comment-avatar { width: 38px; height: 38px; background: var(--red); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; flex-shrink: 0; }
.comment-body strong { font-size: 14px; }
.comment-time { font-size: 11px; color: #999; margin-left: 10px; }
.comment-body p { font-size: 14px; margin: 5px 0 0; color: var(--mid); }

/* ---- RELATED LIST ---- */
.related-list { list-style: none; padding: 12px 16px; margin: 0; }
.related-list li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.related-list li:last-child { border-bottom: none; }
.related-list li a { display: flex; gap: 10px; align-items: flex-start; color: var(--dark); font-size: 13px; line-height: 1.4; }
.related-list li a:hover { color: var(--red); }
.related-list li img { width: 60px; height: 45px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }

/* ---- FOOTER ---- */
#main-footer { margin-top: 40px; }
.footer-top { background: var(--dark2); color: #aaa; padding: 40px 0 20px; }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo .logo-main { color: #fff; }
.footer-logo .logo-sub { color: var(--red); }
.footer-about { font-size: 13px; color: #999; line-height: 1.7; }
.footer-social a { display: inline-block; width: 32px; height: 32px; background: #444; border-radius: 50%; text-align: center; line-height: 32px; color: #aaa; margin-right: 6px; font-size: 13px; transition: background 0.2s; }
.footer-social a:hover { background: var(--red); color: #fff; }
.footer-heading { color: #fff; font-family: var(--font-head); font-size: 15px; font-weight: 800; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid #444; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: 5px 0; }
.footer-links a { color: #999; font-size: 13px; }
.footer-links a:hover { color: var(--red); }
.footer-contact { list-style: none; padding: 0; }
.footer-contact li { color: #999; font-size: 13px; padding: 5px 0; display: flex; align-items: flex-start; gap: 8px; }
.footer-contact i { color: var(--red); margin-top: 2px; }
.footer-bottom { background: var(--dark); padding: 14px 0; }
.footer-bottom p { color: #666; font-size: 12px; margin: 0; }
.footer-bottom a { color: #666; font-size: 12px; margin-left: 14px; }
.footer-bottom a:hover { color: var(--red); }

/* ---- BACK TO TOP ---- */
#backToTop {
  position: fixed; bottom: 26px; right: 26px;
  width: 40px; height: 40px; background: var(--red); color: #fff; border: none;
  border-radius: 50%; font-size: 14px; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  transition: background 0.2s, transform 0.2s;
  z-index: 9999;
}
#backToTop:hover { background: var(--red-dark); transform: translateY(-3px); }
#backToTop.show { display: flex; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero-img { height: 220px; }
  .hero-title { font-size: 17px; }
  .article-title { font-size: 21px; }
  .logo-main { font-size: 17px; }
  .header-search input { width: 120px; }
  .side-img-wrap img { height: 130px; }
}
@media (max-width: 576px) {
  .social-follow-grid { grid-template-columns: 1fr 1fr; }
  .article-body { padding: 16px; }
  .article-content { font-size: 15px; }
}
