/* ==========================================================================
   Vijayadeepa eNews - Premium Modern Design System & UI Overhaul
   Color Palette: Deep Navy (#0b132b), Crimson Red (#d90429), Coral (#ef233c), Soft Slate (#8d99ae), Light Background (#f8f9fa)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Hind:wght@400;500;600;700&display=swap');

:root {
  --primary-color: #d90429;
  --primary-hover: #ef233c;
  --dark-navy: #0b132b;
  --navy-accent: #1c2541;
  --light-bg: #f4f6f9;
  --card-bg: #ffffff;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  --gradient-brand: linear-gradient(135deg, #d90429 0%, #8d0801 100%);
  --gradient-dark: linear-gradient(135deg, #0b132b 0%, #1c2541 100%);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 14px 28px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
}

body {
  font-family: 'Inter', 'Hind', system-ui, -apple-system, sans-serif;
  background-color: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.6;
  padding-top: 105px !important;
}

/* Heading Typography */
h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: 'Outfit', 'Hind', sans-serif;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   Header & Top Announcement Bar
   ========================================================================== */

.top-announcement-bar {
  background: var(--gradient-dark);
  color: #e2e8f0;
  font-size: 0.85rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-announcement-bar a {
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.top-announcement-bar a:hover {
  color: #ffffff;
  text-decoration: none;
}

/* Navigation Navbar */
.navbar-modern {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--primary-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  padding: 10px 0;
}

.navbar-modern .navbar-brand img {
  height: 44px;
  width: auto;
  transition: transform 0.2s ease;
}

.navbar-modern .navbar-brand:hover img {
  transform: scale(1.03);
}

.navbar-modern .nav-link {
  color: var(--dark-navy) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 16px !important;
  border-radius: 20px;
  transition: all 0.25s ease;
  margin: 0 2px;
}

.navbar-modern .nav-link:hover,
.navbar-modern .nav-item.active .nav-link {
  color: #ffffff !important;
  background: var(--gradient-brand);
  box-shadow: 0 4px 12px rgba(217, 4, 41, 0.25);
}

/* ==========================================================================
   Homepage Banner & Carousel Revamp
   ========================================================================== */

.hero-carousel-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: transform 0.3s ease;
}

.hero-carousel-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  min-height: 380px;
}

.hero-carousel-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-carousel-card:hover .hero-carousel-img-wrap img {
  transform: scale(1.05);
}

.hero-content-box {
  padding: 30px;
}

.hero-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--dark-navy);
  line-height: 1.3;
  margin-bottom: 15px;
}

.hero-title a {
  color: var(--dark-navy);
  transition: color 0.2s ease;
}

.hero-title a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

/* ==========================================================================
   Cards & Section Styling
   ========================================================================== */

.section-header-title {
  position: relative;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--dark-navy);
  padding-left: 14px;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-header-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 5px;
  background: var(--gradient-brand);
  border-radius: 4px;
}

/* Choice Cards */
.choice-card-modern {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.choice-card-modern:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.choice-card-img {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.choice-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.choice-card-modern:hover .choice-card-img img {
  transform: scale(1.08);
}

.choice-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.choice-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 10px;
  margin-bottom: 10px;
}

.choice-card-title a {
  color: var(--dark-navy);
  transition: color 0.2s ease;
}

.choice-card-title a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

/* Last News Item Card */
.last-news-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 18px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.last-news-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(217, 4, 41, 0.3);
}

.last-news-img {
  width: 170px;
  height: 115px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform 0.3s ease;
}

.last-news-card:hover .last-news-img {
  transform: scale(1.04);
}

/* ==========================================================================
   Badges, Pills & Views Metadata
   ========================================================================== */

.badge-brand {
  background: var(--gradient-brand);
  color: #ffffff !important;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(217, 4, 41, 0.2);
}

.badge-brand:hover {
  color: #ffffff !important;
  text-decoration: none;
  opacity: 0.9;
}

.badge-views {
  background: rgba(11, 19, 43, 0.06);
  color: var(--navy-accent);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(11, 19, 43, 0.1);
}

.badge-views i {
  color: var(--primary-color);
}

/* ==========================================================================
   Sidebar Widgets Revamp
   ========================================================================== */

.sidebar-widget-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.sidebar-popular-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-light);
}

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

.rank-number {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-color);
  width: 36px;
  min-width: 36px;
  opacity: 0.85;
}

/* ==========================================================================
   Article Detail Page Revamp
   ========================================================================== */

.article-hero-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.style-article-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark-navy);
  line-height: 1.35;
}

.audio-reader-widget {
  background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%) !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Footer Revamp
   ========================================================================== */

.footer-modern {
  background: var(--gradient-dark);
  color: #94a3b8;
  padding-top: 50px;
  padding-bottom: 20px;
  margin-top: 60px;
}

.footer-modern h4 {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-modern h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

.footer-modern a {
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.footer-modern a:hover {
  color: #ffffff;
  text-decoration: none;
}

/* Buttons */
.btn-brand {
  background: var(--gradient-brand);
  color: #ffffff !important;
  font-weight: 600;
  border: none;
  border-radius: 25px;
  padding: 8px 22px;
  box-shadow: 0 4px 12px rgba(217, 4, 41, 0.3);
  transition: all 0.3s ease;
}

.btn-brand:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(217, 4, 41, 0.4);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  body {
    padding-top: 80px !important;
  }
  .hero-carousel-img-wrap {
    min-height: 250px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }
  .style-article-title {
    font-size: 1.6rem;
  }
}
