/* Custom CSS for News Portal */

:root {
  --primary-red: #dc2626;
  --primary-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --border-light: #e5e7eb;
}

/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  color: #374151;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
  padding: 0;
}

/* Typography Reset */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

p {
  margin: 0;
  font-weight: 400;
}

/* Container and Layout Fixes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* Main Content Spacing */
.main-content {
  padding: 1.5rem 0;
  background-color: #f8f9fa;
}

/* Top Bar */
.top-bar {
  background: linear-gradient(135deg, var(--primary-red), #b91c1c);
  color: white;
  font-size: 13px;
  font-weight: 400;
  padding: 8px 0;
}

.top-bar .btn {
  font-size: 12px;
  font-weight: 400;
  padding: 4px 8px;
  border-width: 1px;
}

/* Header Styles */
.main-header {
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-bottom: 3px solid var(--primary-red);
  padding: 0;
}

/* Header Responsive Fixes */
.main-header .container,
.top-bar .container,
.breaking-news .container,
.main-nav .container {
  max-width: 1200px;
}

.main-header .row {
  align-items: center;
}

.logo {
  height: 80px;
  width: 150px;
  object-fit: contain;
}

/* Mobile Menu Toggle */
#mobileMenuToggle {
  border: 1px solid #d1d5db;
  background: white;
  color: #374151;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 16px;
  transition: all 0.2s ease;
}

#mobileMenuToggle:hover {
  background: #f3f4f6;
  border-color: var(--primary-red);
}

#mobileMenuToggle:focus {
  outline: 2px solid var(--primary-red);
  outline-offset: 2px;
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: none;
  position: relative;
  z-index: 1000;
}

.mobile-nav-menu.show {
  display: block;
  animation: slideDown 0.3s ease-out;
}

.mobile-nav-content {
  padding: 16px 0;
}

/* Mobile Search */
.mobile-search {
  margin-bottom: 16px;
}

.mobile-search .input-group {
  width: 100%;
}

.mobile-search .form-control {
  border: 1px solid #d1d5db;
  border-radius: 6px 0 0 6px;
  font-size: 14px;
  font-weight: 400;
  padding: 8px 12px;
}

.mobile-search .input-group-text {
  border: 1px solid #d1d5db;
  border-right: none;
  border-radius: 6px 0 0 6px;
  background: white;
  padding: 8px 12px;
}

.mobile-search .btn {
  border-radius: 0 6px 6px 0;
  padding: 8px 12px;
  font-size: 14px;
}

/* Mobile Navigation Links */
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.mobile-nav-link {
  color: #374151 !important;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-weight: 400;
  font-size: 14px;
  display: flex;
  align-items: center;
  border: 1px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background-color: #fef2f2;
  color: var(--primary-red) !important;
  border-color: #fecaca;
  font-weight: 500;
}

.mobile-nav-link i {
  width: 20px;
  text-align: center;
}

/* Mobile Badges */
.mobile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

/* Search Container Responsive */
.search-container {
  margin-left: auto;
}

.search-container .input-group {
  width: 280px;
  height: 40px;
}

.search-container .form-control {
  border: 1px solid #d1d5db;
  border-radius: 6px 0 0 6px;
  font-size: 14px;
  font-weight: 400;
  padding: 8px 12px;
}

.search-container .input-group-text {
  border: 1px solid #d1d5db;
  border-right: none;
  border-radius: 6px 0 0 6px;
  background: white;
  padding: 8px 12px;
}

.search-container .btn {
  border-radius: 0 6px 6px 0;
  padding: 8px 12px;
  font-size: 14px;
}

/* Navigation */
.main-nav {
  background: linear-gradient(135deg, var(--primary-dark), #111827);
  color: white;
  padding: 0;
}

/* Navigation Links */
.main-nav .d-flex {
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav-link {
  color: white !important;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-weight: 400;
  font-size: 14px;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.nav-link:hover,
.nav-link.active {
  background-color: var(--primary-red);
  color: white !important;
  font-weight: 500;
}

.breaking-news {
  background: #f5a10d;
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  padding: 8px 15px;
  overflow: hidden;
  border-top: 2px solid #FFD700;
  border-bottom: 2px solid #FFD700;
  position: relative;
}

.breaking-content {
  flex: 1;
  overflow: hidden;
  position: relative;
  margin-left: 15px;
}

.breaking-text {
  animation: smooth-scroll 45s linear infinite;
  white-space: nowrap;
  font-weight: 600;
  font-size: 15px;
  display: inline-block;
  padding-left: 100%;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

  100% {
    transform: translateX(-100%);
  }
}

/* Breaking news links styling */
.breaking-link {
  color: white !important;
  text-decoration: none !important;
  transition: all 0.3s ease;
  padding: 2px 4px;
  border-radius: 3px;
  display: inline-block;
}

.breaking-link:hover {
  color: #FFD700 !important;
  background-color: rgba(255, 255, 255, 0.1);
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.8);
  transform: scale(1.05);
}

.breaking-link:visited {
  color: #E6E6FA !important;
}

.separator {
  color: #FFD700;
  margin: 0 8px;
  font-weight: bold;
}

.breaking-dot {
  width: 6px;
  height: 6px;
  background-color: var(--primary-red);
  border-radius: 50%;
  animation: ping 1s infinite;
  margin-left: 8px;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

.breaking-label {
  display: flex;
  align-items: center;
  min-width: fit-content;
  z-index: 2;
}

.breaking-badge {
  font-size: 12px !important;
  font-weight: bold !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 12px !important;
  animation: badge-glow 3s ease-in-out infinite;
}

@keyframes badge-glow {

  0%,
  100% {
    box-shadow: 0 0 5px rgba(220, 20, 60, 0.5);
  }

  50% {
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.8);
  }
}

/* Hover effect to STOP the animation */
.breaking-news:hover .breaking-text {
  animation-play-state: paused;
}

.breaking-news:hover .breaking-dot {
  animation-play-state: paused;
}

.breaking-news:hover .breaking-badge {
  animation-play-state: paused;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .breaking-news {
    padding: 6px 10px;
  }

  .breaking-text {
    font-size: 13px;
    animation-duration: 35s;
  }

  .breaking-content {
    margin-left: 10px;
  }

  .breaking-badge {
    font-size: 10px !important;
    padding: 4px 8px !important;
  }

  .breaking-dot {
    height: 8px;
    width: 8px;
    margin-left: 8px;
  }

  .breaking-link {
    font-size: 13px;
  }

  /* Disable hover pause effect on mobile devices */
  .breaking-news:hover .breaking-text {
    animation-play-state: running;
  }

  .breaking-news:hover .breaking-dot {
    animation-play-state: running;
  }

  .breaking-news:hover .breaking-badge {
    animation-play-state: running;
  }
}

@media (max-width: 480px) {
  .breaking-text {
    font-size: 12px;
    animation-duration: 30s;
  }

  .breaking-link {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .breaking-text {
    font-size: 12px;
    animation-duration: 50s;
  }

  .breaking-link {
    font-size: 12px;
  }
  .breaking-badge{
    display: none;
  }
}

/* Live Elements */
.live-badge {
  position: relative;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 8px;
}

.live-dot {
  width: 10px;
  height: 10px;
  background-color: white;
  border-radius: 50%;
  display: inline-block;
  animation: ping 1s infinite;
}

/* Badge Styles */
.badge {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 8px;
}

.badge-outline {
  border: 1px solid #16a34a;
  color: #16a34a;
  background: transparent;
  font-weight: 400;
}

.badge-trending {
  border: 1px solid #fbbf24;
  color: #fbbf24;
  background: transparent;
  font-weight: 400;
}

.badge-markets {
  border: 1px solid #10b981;
  color: #10b981;
  background: transparent;
  font-weight: 400;
}

.bg-purple {
  background-color: #7c3aed !important;
}

.bg-pink {
  background-color: #db2777 !important;
}

.bg-indigo {
  background-color: #4f46e5 !important;
}

.btn-indigo {
  background-color: #4f46e5;
  border-color: #4f46e5;
  color: white;
  font-weight: 400;
}

.btn-indigo:hover {
  background-color: #4338ca;
  border-color: #4338ca;
}

/* Button Styles */
.btn {
  font-weight: 400;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-sm {
  font-size: 12px;
  padding: 4px 8px;
}

/* Sidebar Cards */
.sidebar-card {
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.sidebar-card .card-header {
  border-radius: 8px 8px 0 0 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 16px;
}

.sidebar-card .card-body {
  padding: 16px;
}

.sidebar-card .card-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

/* Live Updates */
.live-update-item {
  padding: 12px;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.2s ease;
}

.live-update-item:hover {
  background-color: #fef2f2;
}

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

.time-stamp {
  font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;
  font-weight: 500;
  color: var(--text-light);
  font-size: 12px;
}

.update-text {
  font-weight: 400;
  margin: 0;
  line-height: 1.4;
  font-size: 13px;
}

/* Trending Topics */
.trending-item {
  padding: 12px;
  background-color: #f9fafb;
  border-radius: 6px;
  margin-bottom: 8px;
  transition: background-color 0.2s ease;
}

.trending-item:hover {
  background-color: #fef3c7;
}

.trending-item:last-child {
  margin-bottom: 0;
}

.trending-number {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 10px;
  margin-right: 8px;
  flex-shrink: 0;
  min-width: 20px;
  text-align: center;
}

.trending-tag {
  font-weight: 500;
  font-size: 13px;
}

.trending-count {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 400;
}

/* Quick Updates */
.quick-update-item {
  padding: 12px;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.2s ease;
}

.quick-update-item:hover {
  background-color: #eff6ff;
}

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

.urgent-dot {
  width: 6px;
  height: 6px;
  background-color: var(--primary-red);
  border-radius: 50%;
  margin-right: 8px;
  margin-top: 4px;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

.update-title {
  font-weight: 500;
  font-size: 13px;
  line-height: 1.3;
  margin-bottom: 6px;
}

.update-time {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 400;
}

.ad-card {
  background: linear-gradient(135deg, #7c3aed, #db2777);
  color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ad-placeholder {
  height: 160px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  font-size: 12px;
  font-weight: 400;
}

.ad-banner {
  background: linear-gradient(135deg, #10b981, #2563eb, #7c3aed);
  color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.banner-ad-placeholder {
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  font-size: 14px;
  font-weight: 400;
}

/* Video Card */
.video-card {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.video-container {
  position: relative;
  height: 280px;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.1), transparent);
}

.video-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 8px;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: var(--primary-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.video-play-btn:hover {
  background-color: #b91c1c;
  transform: translate(-50%, -50%) scale(1.05);
}

.video-play-btn i {
  color: white;
  font-size: 20px;
  margin-left: 2px;
}

.video-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
}

.video-title {
  color: white;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.video-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.video-controls .btn {
  font-size: 12px;
  padding: 4px 8px;
}

/* News Cards */
.news-card {
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.news-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #fca5a5;
  transform: translateY(-2px);
}

.main-story {
  border: 1px solid #e5e7eb;
}

.main-story:hover {
  border-color: var(--primary-red);
}

.news-image-container {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.main-story .news-image-container {
  height: 300px;
}

.news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-image {
  transform: scale(1.02);
}

.news-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.1), transparent);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
}

.main-story .news-overlay {
  padding: 16px;
}

.breaking-badge {
  animation: pulse 2s infinite;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
}

.category-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 8px;
}

.news-content {
  color: white;
}

.news-title {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
  font-size: 14px;
}

.main-story .news-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.news-card .card-body .news-title {
  color: #111827;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.news-subtitle {
  color: #d1d5db;
  line-height: 1.4;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 400;
}

.news-card .card-body .news-subtitle {
  color: var(--text-light);
  font-size: 13px;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #d1d5db;
  font-weight: 400;
}

.news-card .card-body .news-meta {
  color: var(--text-light);
}

.news-card .card-body {
  padding: 16px;
}

/* Web Stories */
.web-stories-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 0;
  scrollbar-width: thin;
}

.web-stories-container::-webkit-scrollbar {
  height: 4px;
}

.web-stories-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 2px;
}

.web-stories-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 2px;
}

.web-story-item {
  flex-shrink: 0;
  cursor: pointer;
}

.story-image {
  position: relative;
  width: 160px;
  /* height: 180px; */
  aspect-ratio: 9/16;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.story-image:hover {
  transform: scale(1.02);
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.1), transparent);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
}

.story-category {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 6px;
}

.story-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: rgb(0 0 0 / 66%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.story-play-btn i {
  color: white;
  font-size: 14px;
}

.story-info {
  color: white;
}

.story-title {
  font-weight: 600;
  font-size: 11px;
  line-height: 1.2;
  margin-bottom: 4px;
}

.story-meta {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

/* Most Read */
.most-read-item {
  padding: 12px;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.2s ease;
}

.most-read-item:hover {
  background-color: #f0fdf4;
}

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

.read-number {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 11px;
  margin-right: 12px;
  flex-shrink: 0;
}

.read-title {
  font-weight: 500;
  font-size: 13px;
  line-height: 1.3;
  margin-bottom: 4px;
}

.read-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-light);
  font-weight: 400;
}

/* Market Watch */
.market-item {
  padding: 12px;
  background-color: #f9fafb;
  border-radius: 6px;
  margin-bottom: 8px;
}

.market-item:last-child {
  margin-bottom: 0;
}

.market-name {
  font-weight: 500;
  font-size: 12px;
  margin-bottom: 2px;
  color: #374151;
}

.market-value {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #111827;
}

/* Weather Widget */
.weather-main {
  margin-bottom: 12px;
  text-align: center;
}

.weather-temp {
  font-size: 32px;
  font-weight: 700;
  margin: 0;
  color: #111827;
}

.weather-city {
  color: var(--text-light);
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

.weather-desc {
  font-size: 12px;
  color: var(--text-light);
  margin: 0;
  font-weight: 400;
}

.weather-cities div {
  padding: 4px 0;
  font-size: 12px;
  font-weight: 400;
  display: flex;
  justify-content: space-between;
}

/* Newsletter */
.newsletter-desc {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 12px;
  font-weight: 400;
}

.newsletter-count {
  font-size: 11px;
  color: var(--text-light);
  text-align: center;
  margin-top: 8px;
  margin-bottom: 0;
  font-weight: 400;
}

/* Footer */
.main-footer {
  background: linear-gradient(135deg, var(--primary-dark), #111827);
  color: white;
  margin-top: 2rem;
}

.footer-brand {
  margin-bottom: 1.5rem;
}

.footer-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-red), #b91c1c);
  color: white;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
  margin-right: 12px;
}

.footer-title {
  color: #fca5a5;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.footer-subtitle {
  color: #9ca3af;
  font-size: 12px;
  margin: 0;
  font-weight: 400;
}

.footer-desc {
  color: #d1d5db;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.social-links {
  display: flex;
  gap: 8px;
}

.social-links a {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 14px;
}

.social-links a:hover {
  background-color: var(--primary-red);
  transform: translateY(-1px);
}

.footer-heading {
  color: #fca5a5;
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 14px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  font-weight: 400;
}

.footer-links a:hover {
  color: white;
}

.footer-links a i {
  margin-right: 4px;
  width: 12px;
}

.contact-info p {
  color: #d1d5db;
  font-size: 13px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  font-weight: 400;
}

.contact-info i {
  color: #fca5a5;
  margin-right: 8px;
  width: 14px;
}

.footer-divider {
  border-color: #374151;
  margin: 1.5rem 0;
}

.footer-copyright {
  color: #9ca3af;
  font-size: 12px;
  margin: 0;
  font-weight: 400;
}

/* News Details Page Styles */
.news-details-header {
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #e5e7eb;
}

.header-title {
  color: var(--primary-red);
  font-weight: 600;
  margin: 0;
  font-size: 20px;
}

.news-details-content {
  background-color: #f9fafb;
  padding: 1.5rem 0;
}

.news-article {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.article-header {
  padding: 24px;
}

.article-title {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
  margin-bottom: 8px;
}

.article-subtitle {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.4;
  margin-bottom: 20px;
  font-weight: 400;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1)
}

.author-name {
  font-weight: 600;
  color: #111827;
  margin: 0;
  font-size: 14px;
}

.author-role {
  font-size: 12px;
  color: var(--text-light);
  margin: 0;
  font-weight: 400;
}

.article-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}

.stat-item {
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-weight: 400;
}

.article-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.article-content {
  padding: 24px;
}

.article-body {
  font-size: 15px;
  line-height: 1.6;
  color: #374151;
  font-weight: 400;
}

.article-body h3 {
  color: #111827;
  font-weight: 600;
  margin: 24px 0 12px 0;
  font-size: 18px;
}

.article-body ul {
  margin: 16px 0;
  padding-left: 20px;
}

.article-body li {
  margin-bottom: 8px;
  font-weight: 400;
}

.article-body strong {
  font-weight: 600;
}

.article-tags {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.article-tags h5 {
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 14px;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags-container .badge {
  padding: 6px 12px;
  border-radius: 16px;
  border: 1px solid #dee2e6;
  background-color: transparent;
  color: #6c757d;
  font-size: 12px;
  font-weight: 400;
}

.article-reactions {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.article-reactions h5 {
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 14px;
}

.reactions-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reaction-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 20px;
  transition: all 0.2s ease;
  font-size: 12px;
  font-weight: 400;
}

.reaction-btn:hover {
  color: initial;
  background: initial;
}

.reaction-btn.active {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
  color: white;
}

.reaction-count {
  background-color: #f3f4f6;
  color: #374151;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 500;
}

.reaction-btn.active .reaction-count {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.comments-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.comments-title {
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  font-size: 14px;
}

.add-comment {
  margin-bottom: 20px;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-item {
  border-left: 2px solid #f3f4f6;
  padding-left: 12px;
  background-color: #f8f9fa;
  padding: 12px;
  border-radius: 0 6px 6px 0;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.comment-avatar img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.comment-author {
  font-weight: 600;
  font-size: 12px;
}

.comment-time {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 400;
}

.comment-content p {
  color: #374151;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 400;
}

.comment-actions {
  display: flex;
  gap: 8px;
}

.comment-actions .btn {
  font-size: 11px;
  padding: 4px 8px;
}

/* Related News */
.related-news-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.related-news-item:hover {
  background-color: #f8f9fa;
}

.related-image {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.related-content {
  flex: 1;
}

.related-title {
  font-weight: 500;
  font-size: 13px;
  line-height: 1.3;
  margin-bottom: 6px;
}

.related-time {
  font-size: 11px;
  color: var(--text-light);
  margin: 0;
  font-weight: 400;
}

/* More News */
.more-news-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.more-news-item:hover {
  background-color: #f8f9fa;
}

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

.news-rank {
  background-color: var(--primary-red);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 10px;
  flex-shrink: 0;
}

.more-news-image {
  width: 60px;
  height: 45px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.more-news-content {
  flex: 1;
}

.more-news-title {
  font-weight: 500;
  font-size: 12px;
  line-height: 1.3;
  margin-bottom: 4px;
}

.more-news-time {
  font-size: 10px;
  color: var(--text-light);
  margin: 0;
  font-weight: 400;
}

/* Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  100% {
    transform: translateX(-100%);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes ping {

  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Mobile Responsive Design */
@media (max-width: 991.98px) {
  .col-lg-3.d-none.d-lg-block {
    display: none !important;
  }

  .col-lg-6.col-md-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {

  /* Container adjustments */
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Top bar mobile */
  .top-bar .d-flex {
    /* flex-direction: column;
    gap: 8px;
    text-align: center; */
  }

  .top-bar .col-md-8,
  .top-bar .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Header responsive */
  .main-header .row {
    align-items: center;
  }

  /* Logo and badges */
  .logo {
    height: 40px;
  }

  .badge {
    font-size: 10px;
    padding: 2px 6px;
  }

  /* Mobile menu toggle visible */
  #mobileMenuToggle {
    display: block !important;
  }

  /* Hide desktop search on mobile */
  .search-container {
    display: none !important;
  }

  /* Breaking news mobile */
  .breaking-text {
    font-size: 12px;
  }

  /* Content spacing */
  .main-content {
    padding: 1rem 0;
  }

  .sidebar-card {
    margin-bottom: 1rem;
  }

  .news-card {
    margin-bottom: 1rem;
  }

  /* Video card mobile */
  .video-container {
    height: 200px;
  }

  .video-play-btn {
    width: 50px;
    height: 50px;
  }

  .video-play-btn i {
    font-size: 16px;
  }

  .video-title {
    font-size: 14px;
  }

  /* News cards mobile */
  .news-image-container {
    height: 160px;
  }

  .main-story .news-image-container {
    height: 200px;
  }

  .main-story .news-title {
    font-size: 16px;
  }

  .news-title {
    font-size: 13px;
  }

  .news-subtitle {
    font-size: 12px;
  }

  /* Web stories mobile */
  .web-stories-container {
    gap: 8px;
  }

  /* .story-image {
    width: 100px;
    height: 150px;
  } */

  /* Article details mobile */
  .article-header,
  .article-content {
    padding: 16px;
  }

  .article-title {
    font-size: 20px;
  }

  .article-subtitle {
    font-size: 14px;
  }

  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .article-stats {
    align-self: stretch;
    text-align: left;
  }

  .stat-item {
    justify-content: flex-start;
  }

  .reactions-container {
    justify-content: flex-start;
  }

  /* Related news mobile */
  .related-image {
    width: 80px;
    height: 60px;
  }

  .more-news-image {
    width: 50px;
    height: 40px;
  }
}

@media (max-width: 575.98px) {

  /* Extra small screens */
  body {
    font-size: 13px;
  }

  /* Header extra small */
  .main-header .py-3 {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  /* Logo extra small */
  .logo {
    height: 65px;
    margin-bottom: 10px;
  }

  .mobile-center{
    justify-content: center;
  }

  /* Mobile menu toggle */
  #mobileMenuToggle {
    padding: 6px 10px;
    font-size: 14px;
  }

  /* Breaking news extra small */
  .breaking-text {
    font-size: 11px;
  }

  /* Video extra small */
  .video-container {
    height: 180px;
  }

  .video-play-btn {
    width: 40px;
    height: 40px;
  }

  .video-play-btn i {
    font-size: 14px;
  }

  /* Cards extra small */
  .sidebar-card .card-header,
  .sidebar-card .card-body {
    padding: 12px;
  }

  .news-card .card-body {
    padding: 12px;
  }

  /* Article extra small */
  .article-header,
  .article-content {
    padding: 12px;
  }

  .article-title {
    font-size: 18px;
  }

  .article-subtitle {
    font-size: 13px;
  }

  .article-body {
    font-size: 14px;
  }

  /* Footer extra small */
  .footer-title {
    font-size: 16px;
  }

  .footer-desc {
    font-size: 12px;
  }

  .social-links a {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
}

/* Form controls */
.form-control {
  font-size: 14px;
  font-weight: 400;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
}

.form-control:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

/* Textarea */
textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

/* Input groups */
.input-group-text {
  font-size: 14px;
  font-weight: 400;
  background-color: #f9fafb;
  border: 1px solid #d1d5db;
}

/* Utility classes */
.fw-medium {
  font-weight: 500 !important;
}

.fw-mono {
  font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace !important;
}

.text-muted {
  color: var(--text-light) !important;
}

/* Card improvements */
.card {
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 16px;
}

.card-body {
  padding: 16px;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0;
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* Focus styles */
button:focus,
.btn:focus {
  outline: 2px solid var(--primary-red);
  outline-offset: 2px;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Print styles */
@media print {

  .top-bar,
  .main-nav,
  .breaking-news,
  .sidebar-card,
  .video-card,
  .ad-card,
  .ad-banner,
  .main-footer,
  .mobile-nav-menu,
  #mobileMenuToggle {
    display: none !important;
  }

  .main-content {
    padding: 0;
  }

  .news-card {
    break-inside: avoid;
  }
}

.card {
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s;
  height: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-color: rgba(239, 68, 68, 0.2);
}

@media (min-width: 576px) {
  .card-img-container {
    height: 142px;
  }
}

.card-img-container {
  position: relative;
  height: 192px;
}

.card-img-container img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.card-img-overlay-custom {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.badge {
  padding: 0.25rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: bold;
}

.badge-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

.card-body {
  padding: 1rem;
}

.card-title {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.card-text {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 0.75rem;
}

.text-muted {
  color: #6c757d !important;
}

.news-card-description {
  height: 60px;
}

.text-ellipse {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
}

.sticky-sidebar {
  position: sticky;
  top: 20px;
  overflow-y: auto;
  height: 100vh;
  padding-right: 4px;
}

.related-news-item {
  text-decoration: none;
  color: inherit;
}

@media (max-width: 991px) {
  .desktop-navigation {
    padding-bottom: 0 !important;
  }

  #desktopNav {
    display: flex;
    overflow-x: auto;
  }


  /* Scrollbar styling */
  #desktopNav::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }

  #desktopNav::-webkit-scrollbar-track {
    background: transparent;
  }

  #desktopNav::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
  }

  #desktopNav::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
  }

  #desktopNav .nav-link {
    margin-bottom: 10px;
  }

  .mobile-off {
    display: none !important;
  }
}

.additional-media {
  margin-top: 2rem;
}

.additional-media h5 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #333;
}

.media-video {
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.media-video-element {
  width: 100%;
  max-width: 800px;
  max-height: 400px;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.media-item {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.media-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
}

.media-image:hover,
.news-details-image:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.image-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.popup-image {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  font-weight: bold;
}
.text-right{
  text-align: right;
}
.popup-close:hover {
  color: #ccc;
}

.article-body p{
  margin-bottom: 10px;
}

.mobile-mojo-bulletins-link{
  display: none;
}
@media(max-width: 991px){
  .mobile-mojo-bulletins-link-desktop{
    display: none !important;
  }
  .mobile-mojo-bulletins-link{
    display: flex !important;
  }
  .mobile-mojo-bulletins-link a {
    font-size: 14px;
  }
}

