/* Custom News Portal Style Sheet */

:root {
  /* Primary Colors */
  --primary-red: #D90404;
  --primary-blue: #0A1F63;
  --primary-white: #FFFFFF;

  /* Secondary Colors */
  --dark-blue: #05154A;
  --light-blue: #2F5EB8;
  --silver: #D9DEE8;
  --light-gray: #F5F7FA;

  /* Accent Colors */
  --accent-red: #FF2A2A;
  --accent-orange: #FF6A00;

  /* Text Colors */
  --text-dark: #111827;
  --text-light: #FFFFFF;

  /* Borders */
  --border-light: #E5E7EB;
}

/* Custom CSS Helpers matching the palette */
.bg-primary-red { background-color: var(--primary-red); }
.bg-primary-blue { background-color: var(--primary-blue); }
.bg-dark-blue { background-color: var(--dark-blue); }
.bg-light-blue { background-color: var(--light-blue); }
.bg-light-gray { background-color: var(--light-gray); }
.bg-silver { background-color: var(--silver); }

.text-primary-red { color: var(--primary-red); }
.text-primary-blue { color: var(--primary-blue); }
.text-dark-blue { color: var(--dark-blue); }
.text-light-blue { color: var(--light-blue); }
.text-dark { color: var(--text-dark); }
.text-light { color: var(--text-light); }

.border-primary-red { border-color: var(--primary-red); }
.border-primary-blue { border-color: var(--primary-blue); }
.border-light { border-color: var(--border-light); }
.border-silver { border-color: var(--silver); }

/* Custom Typography & Smooth Scroll */
html, body {
  scroll-behavior: smooth;
  font-family: 'Mukta', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background-color: #F9FAFB;
  overflow-x: clip;
}

/* Custom Scrollbar for premium feel */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--light-gray);
}
::-webkit-scrollbar-thumb {
  background: var(--silver);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #cbd5e1;
}

/* Breaking News Ticker Animation */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  height: 40px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
}

.ticker {
  display: inline-block;
  height: 40px;
  line-height: 40px;
  white-space: nowrap;
  padding-right: 100%;
  box-sizing: content-box;
  animation: ticker-loop 35s linear infinite;
}

.ticker:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-block;
  padding: 0 2rem;
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 500;
}

@keyframes ticker-loop {
  0% {
    transform: translate3d(0, 0, 0);
    visibility: visible;
  }
  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

/* Hover effects & Micro-interactions */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-red);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Advertisement Mockup styling */
.ad-banner-bg {
  background: linear-gradient(135deg, #1e1e24 0%, #2a2a35 100%);
  position: relative;
  overflow: hidden;
}
.ad-banner-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(217, 4, 4, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}
