/* Global Styles */
:root {
  --primary-color: #c41e3a;
  --secondary-color: #2c3e50;
  --accent-color: #f39c12;
  --text-dark: #333333;
  --text-light: #666666;
  --border-color: #e0e0e0;
  --bg-light: #f8f9fa;
  --breaking-red: #dc3545;
}

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

body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #ffffff;
}

/* Breaking News Bar */
.breaking-news {
  background: var(--breaking-red);
  color: white;
  padding: 8px 0;
  font-size: 14px;
}

.breaking-label {
  background: #ffffff;
  color: var(--breaking-red);
  padding: 4px 12px;
  font-weight: bold;
  margin-right: 15px;
  text-transform: uppercase;
}

.breaking-content {
  overflow: hidden;
  white-space: nowrap;
}

.breaking-item {
  display: inline-block;
  animation: scroll-left 30s linear infinite;
}

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

/* Header (Blue Masthead) */
.site-header {
  background: #007bd7;
  color: #fff;
  padding: 30px 0 20px;
}
.header-top { display: flex; justify-content: space-between; align-items: center;  }
.logo-section h1 { font-size: 32px; font-weight: 700; letter-spacing: 1px; color: #000; }
.header-actions { display: flex; gap: 12px; }
.menu-toggle { color: #fff; border: none; display: none; }
.btn-signin { background: transparent; color: #fff; padding: 0; border: none; border-radius: 0; text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; }
.btn-signin i { font-size: 18px; }

/* Category Nav (Black) */
.main-nav { background: #0b1520; padding: 10px 0; height:38px; }
.nav-menu { display: flex; list-style: none; margin: 0; padding: 0; }
.nav-menu li { position: relative; }
.nav-menu a { display: block; padding: 0 25px 0 0; color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; }
.nav-menu a:hover { background: rgba(255,255,255,0.1); }

/* Dropdown menus (desktop) */
.nav-menu .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #0f1e2c;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
  display: none;
  z-index: 1000;
  padding: 8px 0;
}
.nav-menu .dropdown-menu li { width: 100%; }
.nav-menu .dropdown-menu .dropdown-link {
  display: block;
  padding: 8px 14px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.nav-menu .dropdown-menu .dropdown-link:hover {
  background: rgba(255,255,255,0.08);
}
.nav-menu li.has-dropdown:hover > .dropdown-menu,
.nav-menu li.has-dropdown:focus-within > .dropdown-menu { display: block; }

/* Overlay Menu */
.menu-overlay { position: fixed; inset: 0; background: #007bd7; color: #fff; z-index: 1050; transform: translateY(100%); transition: transform .3s ease; }
.menu-overlay.open { transform: translateY(0); }
.overlay-header { /* keep existing bootstrap spacing */ }
.overlay-body { padding: 0; }
.overlay-section { margin: 12px 0; font-weight: 700; }
.overlay-sublist { list-style: none; padding-left: 0; margin: 8px 0 16px; }
.overlay-sublist li { margin: 6px 0; }
.overlay-search { background: #f8f9fa; }
.overlay-close { background: transparent; border: 0; color: #fff; font-weight: 600; padding: 4px 8px; display: inline-flex; align-items: center; }
.overlay-close:hover { opacity: .85; }

/* Search trigger */
.search-trigger { font-size: 18px; }

/* reCAPTCHA mimic */
.recaptcha-placeholder { position: fixed; right: 12px; bottom: 12px; z-index: 1040; }
.recaptcha-box { background: #fff; border: 1px solid #dadce0; border-radius: 4px; padding: 6px 10px; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.recaptcha-text { font-size: 12px; color: #6c757d; }

/* Main Content */
.main-content {
  padding: 30px 0;
}

/* Featured Article */
.featured-article {
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 30px;
}

.featured-article img {
  border-radius: 4px;
}

.category-tag {
  background: #007bd7;
  color: white;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 2px;
}

.article-title {
  font-size: 32px;
  margin: 15px 0;
  line-height: 1.3;
  color: var(--text-dark);
}

.article-title-2 {
  font-size: 24px;
  margin: 15px 0 5px;
  line-height: 1.3;
  color: var(--text-dark);
}

.article-excerpt {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.5;
  font-weight: 100;
}


.article-meta {
  font-size: 14px;
  color: var(--text-light);
}

.article-meta .author {
  margin-right: 15px;
  color: #007cd7;
}

/* Article List */
.article-list {
  margin-top: 30px;
}

.article-item {
  margin-bottom: 20px;
}

.article-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 15px;
}

.article-item .article-title {
  margin: 10px 0;
}

.article-item .article-excerpt {
  margin-bottom: 10px;
  font-weight: lighter;
}

/* Sidebar */
.sidebar-widget {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.widget-title {
  background: var(--secondary-color);
  color: white;
  padding: 15px 20px;
  margin: 0;
  font-size: 18px;
  font-weight: bold;
}

/* Most Popular */
.popular-articles {
  padding: 0;
}

.popular-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dotted #c7c7c7;
  align-items: flex-start;
}

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

.popular-widget {
  border: 1px dotted #9aa0a6;
  padding: 16px;
  background: #fff;
}
.popular-widget .widget-title {
  background: none;
  color: var(--text-dark);
  padding: 0;
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
}
.popular-thumb {
  width: 120px;
  height: 80px;
  object-fit: cover;
}

.popular-content {
  padding: 0 10px;
}

.popular-content h4 {
  font-size: 18px;
  margin: 0 0 8px 0;
  line-height: 1.3;
  font-weight: 700;
}

.popular-content a {
  color: var(--text-dark);
  text-decoration: none;
}

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

.popular-meta {
  font-size: 13px;
  color: var(--text-light);
}

.popular-byline {
  font-size: 13px;
  color: #007bd7;
  font-weight: 700;
  margin-bottom: 4px;
}

/* Advertisement */
.ad-banner {
  padding: 20px;
  text-align: center;
}

.ad-placeholder {
  background: var(--bg-light);
  border: 2px dashed var(--border-color);
  padding: 60px 20px;
  color: var(--text-light);
  font-weight: bold;
}

/* Newsletter */
.newsletter-signup {
  padding: 20px;
}

.newsletter-signup p {
  margin-bottom: 15px;
  color: var(--text-light);
}

.newsletter-form input {
  border: 1px solid var(--border-color);
  padding: 10px;
  border-radius: 4px;
}

.newsletter-form button {
  background: var(--primary-color);
  border: none;
  padding: 10px;
  border-radius: 4px;
  color: white;
  font-weight: bold;
}

/* Social Links */
.social-links {
  padding: 20px;
}

.social-link {
  display: block;
  padding: 10px 0;
  color: var(--text-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--border-color);
}

.social-link:last-child {
  border-bottom: none;
}

.social-link:hover {
  color: var(--primary-color);
}

.social-link i {
  margin-right: 10px;
  width: 20px;
}

/* Article Detail (news-details.html) */
.article-detail {}
.article-header .article-title { font-size: 34px; font-weight: 700; line-height: 1.25; }
.article-header .article-meta { font-size: 14px; color: var(--text-light); }
.article-header .share-bar .share-link { color: var(--text-light); margin-left: 12px; text-decoration: none; }
.article-header .share-bar .share-link:hover { color: var(--primary-color); }
.article-hero img { width: 100%; border-radius: 4px; }
.pull-quote { border-left: 4px solid var(--primary-color); padding-left: 12px; font-style: italic; color: var(--text-dark); margin: 18px 0; }
.article-body h3 { font-size: 22px; font-weight: 700; margin-top: 18px; }
.article-body p { margin-bottom: 16px; }
.article-body ul { margin: 0 0 16px 18px; }

/* Category Page (news-category.html) */
.category-page .category-header { border-bottom: 1px solid #e5e7eb; margin-bottom: 1rem; }
.category-page .category-title { font-size: 2rem; font-weight: 700; }
.category-page .category-list { margin-top: .5rem; }
.category-page .category-item { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #e5e7eb; }
.category-page .category-thumb { width: 220px; height: 150px; object-fit: cover; border-radius: 6px; }
.category-page .item-title { font-size: 1.125rem; margin: 0 0 .25rem; line-height: 1.35; }
.category-page .item-title a { color: #111827; text-decoration: none; }
.category-page .item-title a:hover { color: var(--primary-color); }
.category-page .item-byline { color: #6b7280; font-size: .9rem; margin-bottom: .5rem; }
.category-page .item-excerpt { color: #374151; margin: 0; }
.category-page .category-pagination a { border-radius: 999px; }

/* Pagination styling */
.category-page .category-pagination .pagination { flex-wrap: wrap; gap: .5rem; }
.category-page .category-pagination .page-link { border-radius: 999px; padding: .25rem .6rem; }
.category-page .category-pagination .page-item.active .page-link {
  background: #007bd7;
  border-color: #007bd7;
  color: #fff;
}
.category-page .category-pagination .page-link { color: #0b1520; }
.category-page .category-pagination .page-link:hover { color: #0b1520; }

@media (max-width: 991.98px) {
  .category-page .category-item { flex-direction: column; }
  .category-page .category-thumb { width: 100%; height: auto; }
}

/* Footer */
footer {
  background: #007bd7;
  color: #fff;
  padding: 40px 0 20px;
  margin-top: 50px;
}
.footer-logo { font-size: 28px; font-weight: 700; letter-spacing: 1px; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 10px 0; }
.footer-links a { color: #e6f2ff; text-decoration: none; font-size: 14px; }
.footer-links a:hover { text-decoration: underline; }
.footer-right { text-align: right; }
.footer-social a { color: #e6f2ff; margin-left: 12px; text-decoration: none; }
.footer-social a:hover { color: #fff; }
.footer-support {
  text-align: left;
}
.footer-support h3 { font-size: 28.8px; font-weight: 700; margin: 14px 0 6px; }
.footer-support .support-tagline { font-size: 16px; color: #e6f2ff; margin-bottom: 12px; }
.footer-support .btn-support { background: #dc3545; color: #fff; border-radius: 8px; padding: 15.2px 20px; text-decoration: none; display: inline-block; margin-top: 32px}
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.25); padding-top: 16px; margin-top: 24px; display: flex; justify-content: space-between; align-items: center; text-transform: uppercase;}
.footer-bottom .privacy-link { color: #e6f2ff; text-decoration: none; }
.footer-bottom .privacy-link:hover { color: #fff; }
@media (max-width: 768px) {
  .nav-menu {
    flex-direction: column;
  }
  
  .search-box {
    margin-left: 0;
  }
  
  .article-content {
    padding-left: 0;
    margin-top: 20px;
  }
  .menu-toggle { display: inline-flex; align-items: center; }
  .btn-signin { display: inline-flex; }
  .btn-signin .signin-label { display: none; }
  .nav-menu { display: none; }
  .header-actions { gap: 8px; }
  .main-nav { display: none; }
}

/* Support Bar */
.support-bar {
  height: 95.15px;
  background: #0b1f33;
  color: #ffffff;
}
.support-bar .btn-support {
  background: #dc3333;
  color: #fff;
  border-radius: 5px;
  padding: 15.2px 20px;
  text-decoration: none;
  font-size: 19.2px;
}
.support-left .support-title { font-weight: 700; font-size: 28.8px; color: #007cd7; }
.support-left .support-tagline { font-size: 16px; color: #fff; margin-top: 2px;  }

.logo-section img, .footer-logo{
  width: 240px;
}

.side-desc {
  font-size: 14px;
  margin-top: 10px;
}

@media (max-width: 767.98px) {
  .support-title {
    display: none;
  }

  .support-left .support-tagline {
    font-size: 11.7px;
  }

  .support-bar .btn-support {
    padding: 9px;
    font-size: 11.52px;
  }

  .support-bar {
    height: unset;
  }

  .logo-section img, .footer-logo{
    width: 120px;
  }

  .footer-support h3 {
    font-size: 25.92px;
  }

  .footer-support .support-tagline {
    font-size: 11.7px;
  }

  .footer-support .btn-support  {
    padding: 9px;
    font-size: 11.52px;
    margin-top: 10px;
  }

  .footer-support {
    margin-top: 30px;
  }

  .privacy-link {
    font-size: 12.6px;
  }
}

/* Bottom Wrapper: TOP STORIES + OPINION */
.wrap-top-stories {
  background-color: #f8f9fa;
  border-top: 1px solid var(--border-color);
  margin-top: 40px;
}

.wrap-top-stories .widget-title {
  background: none;
  color: var(--text-dark);
  padding: 0 0 15px 0;
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 3px solid #007bff;
  display: inline-block;
  margin-bottom: 25px;
}

/* Bottom Stories Grid (3x2 layout) */
.bottom-story-card {
  background: white;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.bottom-story-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.bottom-story-thumb {
  height: 180px;
  object-fit: cover;
}

.bottom-story-content {
  padding: 15px;
}

.bottom-story-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin: 8px 0 10px 0;
}

.bottom-story-title a {
  color: var(--text-dark);
  text-decoration: none;
}

.bottom-story-title a:hover {
  color: var(--primary-color);
}

.bottom-story-byline {
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
}

/* Category tags for bottom stories */
 .bottom-story-card .category-tag {
   background: #007bff; /* Blue to match top section */
   color: white;
   padding: 4px 8px;
   font-size: 11px;
   font-weight: bold;
   text-transform: uppercase;
   border-radius: 2px;
   display: inline-block;
 }

 /* Opinion image list (bottom wrapper) */
 .opinion-image-item {
   gap: 12px;
 }
 .opinion-image-thumb {
   width: 120px;
   height: 80px;
   object-fit: cover;
   border-radius: 3px;
 }
 .opinion-image-title {
   font-size: 16px;
   font-weight: 600;
   margin: 0 0 6px 0;
 }
 .opinion-image-title a {
   color: var(--text-dark);
   text-decoration: none;
 }
 .opinion-image-title a:hover {
   color: var(--primary-color);
 }
 .opinion-image-byline {
   font-size: 12px;
   color: var(--text-light);
   text-transform: uppercase;
 }