/* Shared navigation and footer treatment for r777. */
:root {
  --r777-ink: #0a1020;
  --r777-surface: #111827;
  --r777-line: rgba(196, 181, 253, 0.24);
  --r777-violet: #8b5cf6;
  --r777-violet-soft: #c4b5fd;
  --r777-gold: #f4c95d;
  --r777-copy: #cbd5e1;
}
.navbar.navbar {
  min-height: 76px;
  background: linear-gradient(90deg, rgba(9, 14, 29, 0.985), rgba(17, 24, 39, 0.96) 52%, rgba(12, 15, 30, 0.985)) !important;
  border-bottom: 1px solid rgba(139, 92, 246, 0.62) !important;
  box-shadow: 0 9px 30px rgba(2, 6, 23, 0.52), inset 0 -1px 0 rgba(244, 201, 93, 0.08) !important;
}
.navbar .container { max-width: 1280px; }
.navbar-brand {
  display: flex;
  align-items: center;
  padding: 5px 12px 5px 0;
  margin-right: 18px;
}
.navbar-brand img {
  width: 128px;
  height: 52px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
}
.navbar .navbar-nav {
  align-items: center;
  gap: 3px;
}
.navbar .nav-item { display: flex; }
.navbar .nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 11px !important;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #e5e7eb !important;
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', 'Segoe UI', sans-serif;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
  text-shadow: none;
  transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus-visible {
  color: #fff !important;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.30), rgba(99, 102, 241, 0.16));
  border-color: rgba(196, 181, 253, 0.35);
  box-shadow: 0 7px 18px rgba(76, 29, 149, 0.27);
  transform: translateY(-1px);
}
.navbar .nav-link.active,
.navbar .nav-link[aria-current="page"] {
  color: #fff !important;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.62), rgba(79, 70, 229, 0.52));
  border-color: rgba(221, 214, 254, 0.64);
  box-shadow: 0 7px 20px rgba(109, 40, 217, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.navbar-toggler {
  padding: 8px;
  border-color: rgba(196, 181, 253, 0.55) !important;
  box-shadow: none !important;
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.28) !important; }
.site-page-offset { display: block; height: 80px !important; }
.news-breadcrumb-wrap { max-width: 1320px; padding-top: 0; }
.news-breadcrumb-wrap .breadcrumb {
  margin: 20px 0;
  padding: 15px 20px;
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.6);
}
.news-breadcrumb-wrap .breadcrumb-item a {
  color: #8b5cf6;
  text-decoration: none;
}
.news-breadcrumb-wrap .breadcrumb-item.active { color: #e5e7eb; }
.content-image {
  display: block;
  width: 100%;
  max-width: 820px;
  height: auto;
  margin: 38px auto;
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}
.not-found-body { background: #060b19; color: var(--r777-copy); }
.not-found-page {
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 72px 0;
  text-align: center;
  background: radial-gradient(circle at 50% 15%, rgba(139, 92, 246, 0.16), transparent 42%);
}
.not-found-card {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 32px;
  border: 1px solid rgba(196, 181, 253, 0.28);
  border-radius: 22px;
  background: rgba(13, 19, 36, 0.82);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
}
.not-found-code {
  margin: 0 0 8px;
  color: var(--r777-gold);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .06em;
}
.not-found-card h1 { margin: 0 0 16px; color: #e9e5ff; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.not-found-card p { max-width: 500px; margin: 0 auto 26px; color: var(--r777-copy); font-size: 1.08rem; line-height: 1.8; }
.not-found-card .btn { padding: 11px 24px; font-weight: 700; }
.news-hero {
  min-height: 0 !important;
  padding: 42px 0 30px !important;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.10) 0%, transparent 100%) !important;
}
.news-hero .container { max-width: 1120px; }
.news-hero h1 { margin-bottom: 12px; }
.news-hero .lead { max-width: 840px; margin: 0 auto; color: #d8d4fe; }
.news-section {
  min-height: 340px;
  padding: 38px 0 70px !important;
  background: transparent !important;
}
.news-section .container { max-width: 1120px; }
.news-empty { max-width: 580px; margin: 0 auto; }
.site-footer.site-footer {
  position: relative;
  margin-top: 0 !important;
  overflow: hidden;
  background:
    radial-gradient(circle at 9% 0%, rgba(139, 92, 246, 0.22), transparent 28%),
    radial-gradient(circle at 90% 16%, rgba(244, 201, 93, 0.09), transparent 20%),
    linear-gradient(135deg, #090e1d, #12172a 55%, #0a1020);
  border-top: 1px solid rgba(139, 92, 246, 0.58) !important;
  color: var(--r777-copy);
}
.site-footer::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  content: '';
  background: linear-gradient(90deg, transparent, var(--r777-gold), var(--r777-violet), transparent);
  opacity: .82;
}
.site-footer .container { position: relative; max-width: 1280px; }
.news-section + .site-footer { margin-top: 0 !important; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(230px, 1.7fr) repeat(3, minmax(120px, .9fr)) minmax(190px, 1.15fr);
  gap: 34px;
  padding: 62px 0 42px;
}
.footer-brand img {
  display: block;
  width: 150px;
  height: 64px;
  object-fit: contain;
  object-position: left center;
  margin: -8px 0 10px;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.45));
}
.footer-desc,
.footer-contact p {
  margin: 0;
  color: #aebbd1;
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', 'Segoe UI', sans-serif;
  font-size: .91rem;
  line-height: 1.8;
}
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.footer-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(196, 181, 253, 0.28);
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
  color: #ddd6fe;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .025em;
}
.footer-title {
  margin: 7px 0 13px;
  color: #fff;
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-weight: 700;
}
.footer-links { display: grid; gap: 8px; }
.site-footer a { color: #b9c5da; text-decoration: none; transition: color .2s ease, transform .2s ease; }
.site-footer a:hover { color: var(--r777-gold); transform: translateX(3px); }
.footer-links a,
.footer-contact > a {
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', 'Segoe UI', sans-serif;
  font-size: .9rem;
  line-height: 1.5;
}
.footer-contact > a { display: inline-block; margin-bottom: 11px; color: #ddd6fe; font-weight: 600; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 0 23px;
  border-top: 1px solid var(--r777-line);
  color: #8e9ab0;
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', 'Segoe UI', sans-serif;
  font-size: .84rem;
}
@media (max-width: 1199.98px) {
  .navbar .nav-link { padding: 8px 8px !important; font-size: .88rem; }
  .footer-grid { grid-template-columns: minmax(240px, 1.65fr) repeat(3, minmax(110px, 1fr)); }
  .footer-contact { grid-column: span 2; }
}
@media (max-width: 991.98px) {
  .navbar.navbar { min-height: 68px; }
  .navbar-brand img { width: 112px; height: 46px; }
  .navbar .navbar-nav { align-items: stretch; gap: 5px; padding: 11px 0 6px; }
  .navbar .nav-item { display: block; }
  .navbar .nav-link { justify-content: center; padding: 11px 13px !important; }
  .site-page-offset { height: 72px; }
  .news-hero { padding: 34px 0 22px !important; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 28px 20px; padding-top: 50px; }
  .footer-grid > :first-child { grid-column: span 3; max-width: 640px; }
  .footer-contact { grid-column: span 1; }
}
@media (max-width: 575.98px) {
  .site-footer { margin-top: 56px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; padding: 42px 0 30px; }
  .footer-grid > :first-child { grid-column: span 2; }
  .footer-contact { grid-column: span 2; }
  .site-page-offset { height: 68px; }
  .news-hero { padding: 28px 0 18px !important; }
  .news-section { min-height: 260px; padding: 26px 0 54px !important; }
  .footer-bottom { display: grid; gap: 5px; padding: 16px 0 19px; }
}
