/* ============================================================
   The Shadowserver Foundation — Training Clone
   Brand palette (sampled from the original):
     --yellow   #ffc41e  (accent, buttons, stats band)
     --dark     #1c1c1c  (hero / dark sections)
     --charcoal #222223  (footer, text)      #3b3b3b (buttons)
     --gray     #757575  (muted text)
     --offwhite #fafafa  (sub-nav / panels)
     --redish   #e05f55  (news highlight mark)
   FONTS (same as the original)
     body  -> Fira Sans
     hero  -> Anonymous Pro (monospace display)
   Both fonts are imported here so they can be changed from this
   file ONLY — no need to edit the HTML <head>.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,400;0,500;0,600;0,700&family=Anonymous+Pro:wght@400;700&display=swap");

:root {
  --yellow: #ffc41e;
  --yellow-dark: #e3af15;
  --dark: #1c1c1c;
  --charcoal: #222223;
  --charcoal-mid: #3b3b3b;
  --gray: #757575;
  --offwhite: #fafafa;
  --text: #222223;
  --muted: #757575;
  --redish: #e05f55;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --max-width: 1200px;

  /* Body + headings font (same as original) */
  --font: "Fira Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* Hero display font (same as original) */
  --font-display: "Anonymous Pro", Georgia, "Times New Roman", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4, h5 { font-family: var(--font); font-weight: 700; color: var(--charcoal); }

.container, .grid .row .col100 { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------ */
.btn-solid {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  transition: 0.15s;
}
.btn-solid-yellow { background: var(--yellow); color: var(--charcoal); }
.btn-solid-yellow:hover { background: var(--yellow-dark); }
.btn-solid-yellow.btn-solid-small { padding: 10px 18px; font-size: 0.9rem; }
.btn-solid-dark-gray { background: var(--charcoal-mid); color: #fff; }
.btn-solid-dark-gray:hover { background: #2f2f2f; }
.btn-solid-mid { padding: 12px 20px; }
.btn-solid-light-gray { background: var(--charcoal-mid); color: #fff; }
.btn-solid-tall { padding: 14px 30px; }

.btn-outline {
  display: inline-block;
  padding: 15px 32px;
  border: 1px solid var(--yellow);
  color: var(--yellow);
  font-weight: 600;
  font-size: 1rem;
  transition: 0.15s;
}
.btn-outline-yellow:hover { background: var(--yellow); color: var(--charcoal); }

/* ------------------------------------------------------------
   HEADER
   ------------------------------------------------------------ */
#site-header { position: relative; z-index: 50; background: #fff; }

.c--search-lang-bar {
  background: var(--charcoal);
  color: #fff;
}
.c--search-lang-bar .search {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6px 24px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.c--search-lang-bar form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.c--search-lang-bar input[type="text"] {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  padding: 4px 6px;
  font-family: var(--font);
  font-size: 0.9rem;
  width: 220px;
}
.c--search-lang-bar input[type="text"]::placeholder { color: rgba(255,255,255,0.7); }
.c--search-lang-bar .icon-button {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
}
.c--search-lang-bar .icon-button::after { content: "\1F50D"; }
.c--search-lang-bar .text-button {
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font);
  font-size: 0.85rem;
  cursor: pointer;
}

/* Main nav */
.c--nav-main {
  background: #fff;
  border-bottom: 1px solid #eee;
}
.c--nav-main .logo { display: inline-flex; align-items: center; gap: 12px; padding-left: 24px; }
.c--nav-main .logo img { height: 40px; width: auto; }
.c--nav-main .logo .tagline img { height: 26px; }

.c--nav-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
}
.c--nav-main-menu ul { display: flex; align-items: center; gap: 30px; }
.c--nav-main-menu a { color: var(--charcoal); font-weight: 500; font-size: 0.92rem; }
.c--nav-main-menu a:hover { color: var(--muted); }
.c--nav-main-menu .btn-nav-main a { color: var(--charcoal); }

/* Sub nav */
.c--nav-sub-main { background: var(--offwhite); border-bottom: 1px solid #eee; }
.c--nav-sub-main ul {
  display: flex;
  justify-content: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 24px;
}
.c--nav-sub-main li { padding: 0 30px; }
.c--nav-sub-main li:not(:last-child) { border-right: 1px solid #ddd; }
.c--nav-sub-main a { color: var(--charcoal); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; }
.c--nav-sub-main a:hover { color: var(--muted); }

/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */
.c--hero-call {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background-color: var(--dark);
  background-image: url("../assets/img/hero/hero-home-bg-desktop.jpg");
  background-position: 100% 0;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
}
.c--hero-call::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35); /* ensure text legibility */
}
.c--hero-call .grid { position: relative; z-index: 2; width: 100%; }
.c--hero-call .content { max-width: 720px; padding: 60px 24px; }
.c--hero-call .content p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.45;
  color: #fff;
  margin-bottom: 40px;
}
.c--hero-call .content .btn-outline { margin-left: 0; }

.scroll-down-arrow { text-align: center; margin-top: 40px; }
.scroll-down-arrow a {
  display: inline-block;
  width: 42px;
  height: 42px;
  background: url("../assets/icons/icon-arrow-circle-down-yellow.svg") 50% no-repeat;
  background-size: contain;
}

/* ------------------------------------------------------------
   WHAT WE DO
   ------------------------------------------------------------ */
.what-we-do { background: #fff; padding: 60px 0 40px; }
.what-we-do h2 {
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid #ddd;
  padding-bottom: 12px;
  margin: 0 0 30px;
}
.what-we-do h2 a:hover { color: var(--muted); }
.c--image-and-info .col-container {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}
.c--image-and-info .image-container { flex: 1 1 55%; }
.c--image-and-info .image-container img { width: 100%; border: 1px solid #ddd; }
.c--image-and-info .content-container { flex: 1 1 45%; padding-top: 10px; }
.c--image-and-info .content p { color: var(--muted); margin-bottom: 24px; font-size: 1rem; line-height: 1.7; }
.c--image-and-info .content strong { color: var(--charcoal); }

/* ------------------------------------------------------------
   STATS BANNER (yellow, angled)
   ------------------------------------------------------------ */
.stats { position: relative; }
.c--stats-banner {
  display: flex;
  align-items: stretch;
  margin: 0 -8px;
}
.c--stats-banner .item {
  position: relative;
  flex: 1 1 0;
  margin: 0 8px;
  padding: 40px 26px 46px;
  background: var(--yellow);
  color: var(--charcoal);
  text-align: center;
  /* angled tops/bottoms */
  clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
}
.c--stats-banner .value {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
}
.c--stats-banner .value .number { font-variant-numeric: tabular-nums; }
.c--stats-banner .description { font-size: 0.95rem; color: var(--charcoal); }
.c--stats-banner .description strong { font-weight: 700; }

/* ------------------------------------------------------------
   WHO WE SERVE  (dark)
   ------------------------------------------------------------ */
.who-we-serve {
  background: var(--charcoal);
  color: #fff;
  padding: 80px 0 90px;
}
.who-we-serve h2 {
  color: #fff;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 60px;
}
.who-we-serve h2 a:hover { color: var(--yellow); }
.who-we-serve .flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.who-we-serve .item { text-align: center; }
.who-we-serve .image img { height: 150px; width: auto; margin: 0 auto 24px; }
.who-we-serve .content h4 { color: #fff; font-size: 1.25rem; margin-bottom: 12px; }
.who-we-serve .content h4 a:hover { color: var(--yellow); }
.who-we-serve .content p { color: #c9c9c9; font-size: 0.95rem; margin-bottom: 22px; }
.who-we-serve .actions .btn-solid { background: var(--offwhite); color: var(--charcoal); }
.who-we-serve .actions .btn-solid:hover { background: var(--yellow); }

/* ------------------------------------------------------------
   TOOLS & NEWS
   ------------------------------------------------------------ */
.tools-news { background: var(--redish); background: #fff; padding: 60px 0; }
.tools-news .flow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.c--news-highlights,
.tools-resources {
  background: var(--offwhite);
  border: 1px solid #eee;
  padding: 30px;
}
.c--news-highlights .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.c--news-highlights h3,
.tools-resources h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.c--news-highlights .dots i {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ddd;
  margin-left: 5px;
}
.c--news-highlights .items .item {
  border-top: 1px solid #ddd;
  padding: 18px 0;
}
.c--news-highlights .items .title {
  display: block;
  font-weight: 600;
  color: var(--charcoal);
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.c--news-highlights .items .date { display: block; color: var(--muted); font-size: 0.8rem; margin-bottom: 10px; }
.c--news-highlights .items p { color: var(--muted); font-size: 0.93rem; line-height: 1.7; }
.c--news-highlights .items .read-more {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  color: var(--charcoal);
  border-bottom: 2px solid var(--yellow);
}
.c--news-highlights .items .read-more:hover { color: var(--yellow-dark); }
.c--news-highlights .more-news {
  text-align: center;
  margin-top: 24px;
}
.c--news-highlights .more-news a {
  display: inline-block;
  background: var(--charcoal-mid);
  color: #fff;
  padding: 12px 26px;
  font-weight: 600;
}
.c--news-highlights .more-news a:hover { background: #2f2f2f; }

.tools-resources .items { display: flex; flex-direction: column; gap: 22px; }
.tools-resources .item { display: flex; align-items: center; gap: 16px; }
.tools-resources .icon img { width: 34px; height: 34px; }
.tools-resources .text { color: var(--charcoal); font-weight: 500; font-size: 0.95rem; }
.tools-resources .item:hover .text { color: var(--muted); }

/* ------------------------------------------------------------
   BOTTOM CALL (yellow banner)
   ------------------------------------------------------------ */
.bottom-call { background: var(--yellow); }
.c--two-call-banner {
  display: flex;
  align-items: stretch;
  margin: 0;
}
.two-call-banner-item {
  flex: 1 1 0;
  position: relative;
  padding: 60px 30px;
  display: flex;
  align-items: center;
  background: var(--yellow);
  color: var(--charcoal);
  clip-path: polygon(0 0, 100% 0, 96% 100%, 0 100%);
}
.two-call-banner-item:last-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 4% 100%); }
.two-call-banner-item .twitter .follow {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--charcoal);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.two-call-banner-item .twitter .follow::before {
  content: "";
  width: 40px; height: 40px;
  background: url("../assets/icons/icon-twitter.svg") 50% no-repeat;
  background-size: contain;
}
.two-call-banner-item .follow:hover { text-decoration: underline; }

.two-call-banner-item .sponsor {
  display: flex;
  align-items: center;
  gap: 24px;
}
.two-call-banner-item .sponsor .image img { width: 90px; height: auto; }
.two-call-banner-item .content h5 { color: var(--charcoal); font-size: 1.1rem; margin-bottom: 10px; }
.two-call-banner-item .content p { color: var(--charcoal); font-size: 0.95rem; margin-bottom: 16px; max-width: 480px; }

/* ------------------------------------------------------------
   FOOTER  (dark)
   ------------------------------------------------------------ */
footer {
  background: var(--charcoal);
  color: #fff;
  padding: 50px 24px 30px;
}
footer .footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 30px;
  margin-bottom: 40px;
}
footer .footer-nav li {
  padding: 0 20px;
  border-right: 1px solid rgba(255,255,255,0.2);
}
footer .footer-nav li:last-child { border-right: none; }
footer .footer-nav a {
  color: #fff;
  font-weight: 500;
  font-size: 0.9rem;
}
footer .footer-nav a:hover { color: var(--yellow); }

.copyright-wiki {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.copyright-wiki .copyright {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: #c9c9c9;
}
.copyright-wiki .copyright .icon img { width: 44px; height: auto; }
.copyright-wiki .copyright .privacy a { color: #c9c9c9; border-bottom: 1px solid var(--yellow); }
.copyright-wiki .copyright .privacy a:hover { color: #fff; }
.copyright-wiki .wiki .btn-solid { background: var(--charcoal-mid); color: #fff; }
.copyright-wiki .wiki .btn-solid:hover { background: #2f2f2f; }

footer .social {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  max-width: var(--max-width);
  margin: 24px auto 0;
}
footer .social .item img { width: 34px; height: 34px; }

/* ------------------------------------------------------------
   TRAINING ZONE (after footer)
   ------------------------------------------------------------ */
.training-zone {
  background: var(--offwhite);
  border-top: 4px dashed var(--yellow);
  padding: 40px 24px;
}
.training-inner { max-width: var(--max-width); margin: 0 auto; text-align: center; }
.training-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--charcoal);
  margin-bottom: 8px;
}
.training-note {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.training-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; }
.training-facebook-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 50px;
  background: #1877f2;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  transition: 0.2s;
}
.training-facebook-button svg { width: 18px; height: 18px; fill: #fff; }
.training-facebook-button:hover { background: #0f5bb5; transform: translateY(-2px); }

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .c--nav-main-menu ul { gap: 18px; }
  .c--nav-main .logo .tagline { display: none; }
}
@media (max-width: 900px) {
  .c--nav-main-menu ul { flex-wrap: wrap; gap: 10px 18px; }
  .c--stats-banner { flex-direction: column; gap: 16px; }
  .c--stats-banner .item { clip-path: none; }
  .who-we-serve .flow { grid-template-columns: 1fr; }
  .tools-news .flow, .c--image-and-info .col-container { grid-template-columns: 1fr; flex-direction: column; }
  .c--two-call-banner { flex-direction: column; }
  .two-call-banner-item { clip-path: none; }
  .c--hero-call { min-height: 460px; background-position: 50% 0; }
  footer .footer-nav ul { gap: 12px 20px; }
  footer .footer-nav li { border-right: none; }
  .copyright-wiki { flex-direction: column; text-align: center; }
  footer .social { justify-content: center; }
}

