/* ==========================================================
   🔴 SDN Buzz — Header Accent Border (Top Bar)
   ========================================================== */

.sdn-header-border {
  width: 100%;
  height: 6px;
  background: linear-gradient(to right, #8b0000, #000000, #8b0000); /* dark red → black → dark red */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); /* subtle depth shadow */
  z-index: 1101;
  position: relative;
}

/* Responsive tweak */
@media (max-width: 991px) {
  .sdn-header-border {
    height: 4px;
  }
}
.modern-desktop-nav {
  border-top: none;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
/* ==========================================================
   🖥️ DESKTOP NAVBAR — Journalistic Edition
   ========================================================== */
@media (min-width: 992px) {

  /* Hide mobile header */
  .mobile-header,
  .mobile-drawer,
  .submit-btn.d-lg-none {
    display: none !important;
  }

  .modern-desktop-nav {
    background: #fff;
    border: none;
    padding: 0.5rem 0;
    /*border-radius: 40px;*/
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
  }

  .modern-desktop-nav .container {
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 35px;
    gap: 20px;
  }

  /* 🔴 Logo */
  .modern-desktop-nav .logo {
    height: 65px;
    transition: transform 0.3s ease;
  }
  .modern-desktop-nav .logo:hover {
    transform: scale(1.05);
  }

  /* 🔍 Search Bar */
  .search-wrapper {
    flex-grow: 1;
    max-width: 420px;
    position: relative;
    display: flex;
    align-items: center;
  }

  .search-input {
    width: 100%;
    border: none;
    border-bottom: 2px solid #ccc;
    background: transparent;
    height: 42px;
    font-size: 0.9rem;
    padding: 8px 40px 8px 10px;
    color: #555;
    outline: none;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.3s ease, color 0.3s ease;
  }

  .search-input::placeholder {
    color: #aaa;
    font-size: 0.82rem;
    font-weight: 300;
    letter-spacing: 0.3px;
  }

  .search-input:focus {
    border-bottom-color: #d62828;
  }

  .search-input:focus ~ .search-btn {
    color: #d62828;
  }

  .search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #555;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
  }

  .search-btn:hover {
    color: #d62828;
    transform: translateY(-50%) translateX(2px);
  }

  /* 🧭 Navigation Links */
  .navbar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .navbar-nav .nav-link {
    color: #333 !important;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 10px 14px;
    position: relative;
    transition: all 0.3s ease;
  }

  /* Hover underline animation */
  .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #d62828;
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }

  .navbar-nav .nav-link:hover {
    color: #d62828 !important;
  }

  .navbar-nav .nav-link:hover::after {
    width: 50%;
  }

  /* Active link styling */
  .navbar-nav .nav-link.active {
    color: #d62828 !important;
    font-weight: 700;
  }

  .navbar-nav .nav-link.active::after {
    width: 50%;
  }

  /* ✍️ Submit Article Button */
  .submit-btn-desktop {
    background: #d62828;
    color: #fff;
    border-radius: 25px;
    padding: 6px 18px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    box-shadow: 0 3px 8px rgba(214, 40, 40, 0.25);
    transition: all 0.3s ease;
  }

  .submit-btn-desktop:hover {
    background: #b81f1f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 31, 31, 0.3);
  }

  /* Journalistic Logo Font */
  .navbar-brand {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: #d62828 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }
}

/* ==========================================================
   📱 MOBILE NAVBAR + DRAWER (Unaffected)
   ========================================================== */

@media (max-width: 991px) {

  /* Hide desktop nav */
  .modern-desktop-nav {
    display: none !important;
  }

  .mobile-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1050;
  }

  .mobile-search {
    width: 100%;
  }

  .search-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
  }

  .mobile-search-input {
    width: 100%;
    border: none;
    border-bottom: 2px solid #ccc;
    padding: 10px 36px 10px 8px;
    font-size: 15px;
    background: transparent;
    color: #222;
    outline: none;
    transition: border-color 0.3s ease;
  }

  .mobile-search-input:focus {
    border-bottom-color: #d62828;
  }

  .search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s ease;
  }

  .search-btn:hover {
    color: #d62828;
  }

  .mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100%;
    background: #d62828;
    color: #fff;
    transition: right 0.4s ease;
    z-index: 1100;
    padding: 70px 20px;
  }

  .mobile-drawer.show {
    right: 0;
  }

  .mobile-drawer a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }

  .mobile-drawer a:hover {
    color: #ffe66d;
  }

  .submit-btn {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: #d62828;
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1200;
    font-size: 0.95rem;
  }

  .submit-btn:hover {
    background: #b81f1f;
  }
}

/* ==========================================================
   🧠 FORM VALIDATION VISUAL FEEDBACK
   ========================================================== */
.search-input:invalid {
  border-bottom-color: #e63946;
}

.search-input:invalid::placeholder {
  color: #e63946;
}
