/* =========================================
   BNR Online Training - Custom Styles
   File: bnr-styles.css
   ========================================= */

:root {
  --bnr-dark-green: #004a14;
  --bnr-bright-green: #2ead4c;
  --bnr-gold: #96792b;
  --bnr-light-bg: #f4f7f6;
}

body {
  background-color: var(--bnr-light-bg);
}

/* Header & Navigation */

.header-bar {
  background-color: var(--bnr-dark-green);
  border-top: 4px solid var(--bnr-gold);
}

.header-bar .nav-link {
  color: #ffffff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.header-bar .nav-link:hover {
  color: var(--bnr-gold);
}

/* Ad Placement Containers */

.ad-leaderboard, .ad-sidebar {
  background-color: #e0e0e0;
  border: 1px dashed #999;
  color: #777;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ad-leaderboard {
  min-height: 90px;
  margin: 20px 0;
}

.ad-sidebar {
  min-height: 250px;
  margin-bottom: 20px;
}

/* Article Cards (Bootstrap Card Overrides) */

.bnr-card {
  border: none;
  border-top: 4px solid var(--bnr-bright-green);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.bnr-card:hover {
  transform: translateY(-3px);
  border-top-color: var(--bnr-dark-green);
}

.bnr-card .card-title {
  color: var(--bnr-dark-green);
  font-weight: bold;
  font-size: 1.25rem;
}

.bnr-card .category-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--bnr-gold);
  font-weight: bold;
  display: block;
  margin-bottom: 8px;
}

/* Custom Buttons */

.btn-outline-gold {
  border: 2px solid var(--bnr-gold);
  color: var(--bnr-gold);
  font-weight: bold;
}

.btn-outline-gold:hover {
  background-color: var(--bnr-gold);
  color: #ffffff;
}

/* Sidebar Widgets */

.sidebar-widget {
  background: #ffffff;
  padding: 20px;
  border-radius: 0.375rem;
  margin-bottom: 20px;
}

.sidebar-widget h4 {
  color: var(--bnr-dark-green);
  border-bottom: 2px solid var(--bnr-light-bg);
  padding-bottom: 10px;
  margin-bottom: 15px;
  font-size: 1.1rem;
  font-weight: bold;
}

/* Sister Site Funnel CTA Widget */

.widget-funnel {
  background-color: var(--bnr-dark-green);
  border-top: 4px solid var(--bnr-gold);
  color: #ffffff;
  text-align: center;
}

.widget-funnel h4 {
  color: #ffffff;
  border-bottom: none;
}

.btn-funnel {
  background-color: var(--bnr-gold);
  color: #ffffff;
  font-weight: bold;
  width: 100%;
}

.btn-funnel:hover {
  background-color: #7a6222;
  color: #ffffff;
}

/* =========================================
   Split Header Design
   ========================================= */

.split-header-wrapper {
  display: flex;
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
}

/* Logo Area */

.logo-container {
  padding: 15px 30px;
  background-color: #ffffff;
  z-index: 2;
  display: flex;
  align-items: center;
}

/* Navigation Area */

.nav-container {
  flex-grow: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
}

/* The Angled Background & Gold Line */

.nav-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 200%;
  background-color: var(--bnr-dark-green);
  border-left: 6px solid var(--bnr-gold);
  transform: skewX(-25deg);
  transform-origin: bottom left;
  z-index: 1;
}

/* The Navigation Links */

.nav-container nav {
  z-index: 2;
  display: flex;
}

.nav-container .nav-link {
  color: #ffffff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  padding: 10px 20px;
  transition: color 0.2s;
}

.nav-container .nav-link:hover {
  color: var(--bnr-gold);
}

/* Mobile Fallback: Stacks neatly on phones without the angle */

@media (max-width: 991px) {
  .split-header-wrapper {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 991px) {
  .logo-container {
    justify-content: center;
    padding: 15px;
  }
}

@media (max-width: 991px) {
  .nav-container::before {
    display: none;
  }
}

@media (max-width: 991px) {
  .nav-container {
    background-color: var(--bnr-dark-green);
    border-top: 4px solid var(--bnr-gold);
    padding: 10px 0;
    justify-content: center;
  }
}

@media (max-width: 991px) {
  .nav-container nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 991px) {
  .nav-container .nav-link {
    padding: 8px 15px;
    font-size: 0.85rem;
  }
}

/* =========================================
   BNR Navbar - Split Design 
   ========================================= */

.bnr-override-nav {
  border-bottom: 2px solid #004a14;
}

/* DESKTOP VIEW: The Angled Gold Line & Green Background */

@media (min-width: 992px) {
  .bnr-override-nav {
    background: linear-gradient(105deg, #ffffff 0%, #ffffff 300px, #96792b 300px, #96792b 308px, #004a14 308px, #004a14 100% ) !important;
    border-bottom: none !important;
  }
}

/* MOBILE VIEW: Stacked Colors */

@media (max-width: 991px) {
  .bnr-override-nav {
    background-color: #ffffff !important;
  }
}

@media (max-width: 991px) {
  #bnrNavbar {
    background-color: #004a14 !important;
    border-top: 5px solid #96792b !important;
    padding: 15px 0;
  }
}

@media (max-width: 991px) {
  .custom-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23004a14' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  }
}

/* Link Styling */

.bnr-override-nav .nav-link {
  color: #ffffff !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.bnr-override-nav .nav-link:hover {
  color: #96792b !important;
}

@media (max-width: 991px) {
  .bnr-override-nav .nav-link {
    text-align: center;
    padding: 12px 0;
  }
}

/* =========================================
   Interactive Topic List Cards
   ========================================= */

.topic-list-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  padding: 16px 20px;
  margin-bottom: 15px;
  border-radius: 4px;
  border-left: 4px solid #004a14;
  color: #004a14;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

/* Stops the text from turning blue on hover in Bootstrap */

.topic-list-card:hover {
  color: #004a14;
  text-decoration: none;
}

/* The Hover Animation: Card bumps right, border turns gold */

.topic-list-card:hover {
  background-color: #f4f7f6;
  border-left-color: #96792b;
  transform: translateX(4px);
}

/* The Arrow Icon Styling */

.topic-arrow {
  color: #96792b;
  font-weight: bold;
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

/* Arrow shoots slightly further right on hover */

.topic-list-card:hover .topic-arrow {
  transform: translateX(4px);
}

/* =========================================
   BNR Footer Styling (Charcoal)
   ========================================= */

.bnr-footer {
  background-color: #212529;
  color: #ced4da;
  border-top: 4px solid #96792b;
}

.bnr-footer .footer-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #adb5bd;
}

/* The Legal Disclaimer Box */

.disclaimer-box {
  background-color: rgba(0, 0, 0, 0.25);
  border-left: 3px solid #96792b;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* Footer Links */

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

.footer-links a {
  color: #ced4da;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #96792b;
  text-decoration: none;
}

/* Bottom Copyright Bar Links */

.footer-bottom-text {
  font-size: 0.85rem;
  color: #6c757d;
}

.footer-bottom-link {
  font-size: 0.85rem;
  color: #6c757d;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-link:hover {
  color: #ffffff;
}

/* =========================================
   Navbar Spacing Override (Fix for Linked Component)
   ========================================= */

/* Physically shift the menu RIGHT (Positive number = Right, Negative = Left) */

@media (min-width: 992px) {
  .bnr-override-nav .navbar-nav {
    transform: translateX(40px) !important;
  }
}

/* Vertically center the links */

@media (min-width: 992px) {
  .bnr-override-nav .navbar-collapse {
    display: flex !important;
    align-items: center !important;
    height: 100%;
  }
}

@media (min-width: 992px) {
  .bnr-override-nav .nav-item {
    display: flex;
    align-items: center;
  }
}

/* Breathing room between the individual links */

.navbar-nav .nav-item {
  margin-left: 5px;
  margin-right: 5px;
}

