/* =========================================================
   Red Team Training Reviews - Site Styles
   Keep this as your single source of truth.
========================================================= */

:root{
  --accent: #ffcc66;
  --accent-soft: rgba(255, 204, 102, 0.12);

  --text: #f1f1f1;
  --muted: rgba(241,241,241,0.80);

  --border: rgba(255,255,255,0.10);

  --page-overlay: rgba(0,0,0,0.70);
  --section-overlay: rgba(0,0,0,0.62);
  --bar-bg: rgba(25, 28, 31, 0.62);

  --panel: rgba(20,20,20,0.55);
  
  --active-bg: rgba(190, 60, 60, 0.18);
  --active-border: rgba(190, 60, 60, 0.5);
  --active-text: #ffb3b3;
}

html, body { height: 100%; }

body{
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Default background image (you can override per-page if needed) */
  background:
    linear-gradient(var(--page-overlay), var(--page-overlay)),
    url("./bg-header.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

a { color: rgba(255,255,255,0.92); }
a:hover { color: #ffffff; text-decoration: none; }

/* =========================================================
   Top bar (Home)
========================================================= */
.topbar{
  padding: 10px 16px;
}

.topbar .home-link{
  float: right;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.92);
}

.topbar::after{ content:""; display:block; clear:both; }

/* =========================================================
   Hero
========================================================= */
.hero{
  text-align: center;
  padding: 64px 20px;
  margin: 0;

  background: linear-gradient(var(--section-overlay), var(--section-overlay));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hero h1{
  font-size: 2.35rem;
  margin-bottom: 10px;
  font-weight: 800;
}

.hero p{
  margin: 0 auto;
  max-width: 920px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* =========================================================
   Reviewed Training chip bar
========================================================= */
.reviewedbar{
  background: var(--bar-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(4px);
}

.reviewedbar .navbar-brand{
  font-weight: 700;
  color: rgba(255,255,255,0.92);
}

.reviewed-links .nav-link{
  margin: 6px 6px 6px 0;
  padding: 6px 10px;
  border-radius: 999px;

  color: rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);

  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  font-size: 0.92rem;
  line-height: 1.1;
  white-space: nowrap;
}

.reviewed-links .nav-link:hover,
.reviewed-links .nav-link:focus{
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(255, 204, 102, 0.35);
  text-decoration: none;
}

.reviewed-links .nav-link.active{
  color: var(--active-text);
  background: var(--active-bg);
  border-color: var(--active-border);
  font-weight: 650;
}

/* IMPORTANT: no pseudo-elements on chips (prevents dot bleed) */
.reviewed-links .nav-link::before,
.reviewed-links .nav-link::after{
  content: none !important;
}

/* =========================================================
   Panels + layout helpers
========================================================= */
.page-gap{ padding: 26px 0 46px; }

.content-panel{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
  backdrop-filter: blur(3px);
}

.content-panel a{
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 204, 102, 0.35);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.content-panel a:hover{
  color: #ffd98a;
  border-bottom-color: rgba(255, 204, 102, 0.85);
}

.section-title{
  font-weight: 800;
  margin: 0 0 10px 0;
}

.meta-line{
  color: var(--muted);
  margin: 0 0 14px 0;
}

.divider{
  border-color: var(--border);
  margin: 18px 0;
}

/* =========================================================
   Sidebar title + side-nav dots (opt-in)
========================================================= */
.sidebar-title{
  font-weight: 800;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.92);
  margin: 0 0 10px 0;
}

.side-nav .nav-link{
  position: relative;
  padding-left: 18px;
  cursor: pointer;

  color: rgba(255,255,255,0.88);
  transition: color 0.15s ease;
}

.side-nav .nav-link::before{
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.25);
  transition: background-color 0.15s ease;
}

.side-nav .nav-link:hover,
.side-nav .nav-link:focus{
  color: var(--accent);
  text-decoration: none;
}

.side-nav .nav-link:hover::before,
.side-nav .nav-link:focus::before{
  background-color: var(--accent);
}

/* =========================================================
   Review body helpers
========================================================= */
.review-body h5{
  margin-top: 18px;
  margin-bottom: 10px;
  font-weight: 700;
}

.review-body p{
  margin-bottom: 12px;
  line-height: 1.65;
}

.review-body img{
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
  margin: 12px 0;
}

/* =========================================================
   Footer
========================================================= */
.site-footer{
  margin-top: 20px;
  padding: 28px 15px;
  text-align: center;

  background: linear-gradient(var(--section-overlay), var(--section-overlay));
  border-top: 1px solid var(--border);
}

.site-footer .nav{
  justify-content: center;
  margin-bottom: 12px;
}

.site-footer .footer-meta{
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.site-footer .counter{
  margin-top: 10px;
  opacity: 0.7;
  font-size: 0.95rem;
}

/* Small screens */
@media (max-width: 576px){
  .hero{ padding: 54px 18px; }
  .hero h1{ font-size: 1.9rem; }
}

/* --------------------------
   Embed wrapper (certificates, iframes, etc.)
-------------------------- */
.embed-wrap{
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  padding: 10px;
}

.embed-wrap embed,
.embed-wrap iframe{
  display: block;
  max-width: 100%;
}

/* Review pages */
.review-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 12px 0;
}

/* Sidebar course list – gold dots */
#side-nav .nav-link {
  position: relative;
  padding-left: 1.4rem; /* room for the dot */
}

#side-nav .nav-link::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.55em;
  color: var(--accent, #d4af37); /* fallback gold */
  font-size: 1.1rem;
  line-height: 1;
}

/* Sidebar pills: override Bootstrap blue */
#side-nav.nav-pills .nav-link.active{
  color: #e6f0ff;
  background: rgba(120, 150, 180, 0.18);
  border: 1px solid rgba(120, 150, 180, 0.5);
}

#side-nav.nav-pills .nav-link{
  border-radius: 8px;              /* optional: matches your panels nicer */
  margin-bottom: 6px;              /* optional: adds breathing room */
}

#side-nav.nav-pills .nav-link.active{
  box-shadow: inset 3px 0 0 rgba(120, 150, 180, 0.85);
}


.site-footer{
  background: linear-gradient(
    rgba(0,0,0,0.35),
    rgba(0,0,0,0.35)
  );
}