@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Josefin+Sans:wght@300;400;600&family=Rajdhani:wght@500;600;700&family=Source+Sans+3:wght@300;400;600&display=swap");

:root {
  --py-yellow: #FFD43B;
  --py-yellow-dark: #C9A227;
  --py-navy: #16213e;
  --py-blue: #4B8BBE;
  --py-blue-dark: #306998;
  --py-silver: #94a3b8;
  --py-light: #f1f5f9;
  --py-code-bg: #1e1e2e;
  --dg-border: rgba(75, 139, 190, 0.25);
}

body {
  font-family: "DM Sans", system-ui, sans-serif;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Rajdhani", "DM Sans", sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

a {
  color: var(--py-blue);
}

a:hover:not([class*="bg-"]):not([class*="btn-"]):not([class*="text-"]) {
  color: var(--py-yellow);
}

::selection {
  background: rgba(75, 139, 190, 0.35);
  color: var(--py-light);
}

/* Removed legacy navbar-shield rules — templates use a different navbar markup. */

.prose-dg {
  font-size: 18px;
  line-height: 1.7;
  font-weight: 300;
}

.prose-dg h2,
.prose-dg h3 {
  color: var(--py-light);
}

.prose-dg pre {
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid var(--dg-border);
  border-radius: 0.5rem;
  background: var(--py-code-bg);
  color: var(--py-light);
}

.prose-dg code:not(pre code) {
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
  background: rgba(255, 212, 59, 0.12);
  color: var(--py-yellow);
}

.hljs {
  background: var(--py-code-bg) !important;
  color: #e2e8f0;
}

.hljs-keyword {
  color: var(--py-yellow) !important;
}

.hljs-string {
  color: var(--py-blue) !important;
}

.hljs-number {
  color: var(--py-light) !important;
}

.hljs-comment {
  color: #64748b !important;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════
   HOME PAGE LAYOUT & COMPONENTS
   ═══════════════════════════════════════════════════════ */
:root {
  --py-muted: #64748b;
}

.section-dg {
  padding: 4rem 1.5rem;
  background-color: #ffffff;
  border-bottom: 2.5px solid var(--py-navy);
}
.section-dg--bordered {
  border-top: 2.5px solid var(--py-navy);
}
.container-dg {
  max-width: 1200px;
  margin: 0 auto;
}
.container-dg h2 {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  color: var(--py-navy);
}
.container-dg p,
.section-dg p,
.about-grid p {
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--py-navy);
  font-weight: 500;
}

/* Rock-solid 4-sided borders for cards and utilities */
.border-2\.5,
.border-2\.5px,
.border-brutal {
  border: 2.5px solid #16213e !important;
}

.border-shield-navy {
  border-color: #16213e !important;
}

.card-brutal,
.edition-card,
.newsletter-card {
  background-color: #ffffff !important;
  border: 2.5px solid #16213e !important;
  box-shadow: 5px 5px 0px #16213e !important;
}

/* Grids */
.about-grid, .impact-grid, .community-grid, .support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
.support-grid, .impact-grid {
  align-items: flex-start;
}
@media (min-width: 768px) {
  .about-grid, .impact-grid, .community-grid, .support-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .events-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Badges */
.stat-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0.25rem;
}
.stat-badge--orange {
  background-color: rgba(255, 212, 59, 0.2);
  color: var(--py-yellow-dark);
}
.stat-badge--blue {
  background-color: rgba(75, 139, 190, 0.15);
  color: var(--py-blue-dark);
}
.tag-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--py-light);
  color: var(--py-blue);
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* ═══════════════════════════════════════════════════════
   MLH-STYLE NEO-BRUTALIST BUTTON SYSTEM (Major League Hacking)
   ═══════════════════════════════════════════════════════ */
.btn-orange,
.btn-hero-primary,
.btn-brutal-primary,
.btn-mlh-yellow {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background-color: #FFD43B !important; /* Lighter Yellow matching Contact header button */
  color: #16213e !important;
  padding: 0.95rem 1.85rem;
  font-family: "Martian Mono", monospace;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  border: 2.5px solid #16213e;
  box-shadow: 5px 5px 0 #16213e;
  text-decoration: none !important;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
}
.btn-orange:hover,
.btn-hero-primary:hover,
.btn-brutal-primary:hover,
.btn-mlh-yellow:hover {
  background-color: #FFE066 !important;
  color: #16213e !important;
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 #16213e;
}
.btn-orange:active,
.btn-hero-primary:active,
.btn-brutal-primary:active,
.btn-mlh-yellow:active {
  transform: translate(5px, 5px);
  box-shadow: 0px 0px 0 #16213e;
}

.btn-hero-outline,
.btn-brutal-outline {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background-color: #ffffff !important;
  color: #16213e !important;
  padding: 0.95rem 1.85rem;
  font-family: "Martian Mono", monospace;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  border: 2.5px solid #16213e;
  box-shadow: 5px 5px 0 #16213e;
  text-decoration: none !important;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
}
.btn-hero-outline:hover,
.btn-brutal-outline:hover {
  background-color: #f8fafc !important;
  color: #16213e !important;
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 #16213e;
}
.btn-hero-outline:active,
.btn-brutal-outline:active {
  transform: translate(5px, 5px);
  box-shadow: 0px 0px 0 #16213e;
}

.btn-blue,
.btn-brutal-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background-color: #4B8BBE !important;
  color: #ffffff !important;
  padding: 0.95rem 1.85rem;
  font-family: "Martian Mono", monospace;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  border: 2.5px solid #16213e;
  box-shadow: 5px 5px 0 #16213e;
  text-decoration: none !important;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
}
.btn-blue:hover,
.btn-brutal-secondary:hover {
  background-color: #306998 !important;
  color: #ffffff !important;
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 #16213e;
}
.btn-blue:active,
.btn-brutal-secondary:active {
  transform: translate(5px, 5px);
  box-shadow: 0px 0px 0 #16213e;
}

.btn-navy,
.btn-brutal-dark {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background-color: #16213e !important;
  color: #ffffff !important;
  padding: 0.95rem 1.85rem;
  font-family: "Martian Mono", monospace;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  border: 2.5px solid #16213e;
  box-shadow: 5px 5px 0 #FFB800;
  text-decoration: none !important;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
}
.btn-navy:hover,
.btn-brutal-dark:hover {
  background-color: #1a273e !important;
  color: #ffffff !important;
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 #FFB800;
}
/* 3D Yellow Arrow Badges (MLH Style) */
.btn-arrow-3d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 38px;
  background-color: #FFB800 !important;
  color: #16213e !important;
  border: 2.5px solid #16213e;
  box-shadow: 3px 3px 0 #16213e;
  font-family: "Martian Mono", monospace;
  font-weight: 900;
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: all 0.15s ease-in-out;
}
.btn-arrow-3d:hover,
a:hover .btn-arrow-3d,
button:hover .btn-arrow-3d {
  background-color: #FFC72C !important;
  transform: translate(1.5px, 1.5px);
  box-shadow: 1.5px 1.5px 0 #16213e;
}

/* Neo-Brutalist Cards */
.card-brutal {
  background: #ffffff;
  border: 2.5px solid var(--py-navy);
  box-shadow: 6px 6px 0 var(--py-navy);
  transition: all 0.15s ease-in-out;
}
.card-brutal:hover {
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0 var(--py-navy);
}

/* Neo-Brutalist Form Inputs & Newsletter */
.newsletter-form {
  display: flex;
  margin-top: 1.25rem;
  gap: 0.5rem;
}
.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2.5px solid var(--py-navy);
  border-radius: 0;
  box-shadow: 4px 4px 0 var(--py-navy);
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.15s ease-in-out;
}
.newsletter-form input:focus {
  box-shadow: 6px 6px 0 var(--py-blue);
}
.newsletter-form button {
  background-color: var(--py-yellow);
  color: var(--py-navy);
  padding: 0.75rem 1.5rem;
  border: 2.5px solid var(--py-navy);
  box-shadow: 4px 4px 0 var(--py-navy);
  font-family: "Martian Mono", monospace;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}
.newsletter-form button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--py-navy);
}

/* Event Cards */
.event-card-overlay {
  position: relative;
  display: block;
  height: 250px;
  border-radius: 0;
  border: 2.5px solid var(--py-navy);
  box-shadow: 6px 6px 0 var(--py-navy);
  overflow: hidden;
  transition: all 0.15s ease-in-out;
}
.event-card-overlay:hover {
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0 var(--py-navy);
}
.event-card-overlay__bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  transition: filter 0.3s;
}
.event-card-overlay--past .event-card-overlay__bg {
  filter: grayscale(100%);
}
.event-card-overlay--past:hover .event-card-overlay__bg {
  filter: grayscale(0%);
}
.event-card-overlay__gradient {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}
.event-card-overlay__text {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  color: #fff;
}
.event-card-overlay__city {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.event-card-overlay__date {
  font-family: "Martian Mono", monospace;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--py-yellow);
}

/* Coaches */
.coach-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.coach-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0;
  border: 2.5px solid var(--py-navy);
  box-shadow: 4px 4px 0 var(--py-navy);
  object-fit: cover;
}

/* Blog Links */
.blog-link-item {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #ffffff;
  border: 2.5px solid var(--py-navy);
  box-shadow: 4px 4px 0 var(--py-navy);
  transition: all 0.15s ease-in-out;
}
.blog-link-item:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--py-navy);
}
.blog-link-item a:first-child {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--py-navy);
  display: block;
  margin-bottom: 0.5rem;
}
.blog-link-item a:first-child:hover {
  color: var(--py-blue);
}
.blog-link-item p {
  color: var(--py-muted);
  font-size: 0.95rem;
}
.read-all {
  font-weight: 700;
  margin-left: 0.25rem;
}

/* Support/Progress */
.progress-bar-wrap {
  width: 100%;
  background-color: #ffffff;
  border: 2.5px solid var(--py-navy);
  box-shadow: 4px 4px 0 var(--py-navy);
  border-radius: 0;
  height: 1.75rem;
  overflow: hidden;
}
.progress-bar-fill {
  background-color: var(--py-yellow);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-family: "Martian Mono", monospace;
  font-weight: 800;
  color: var(--py-navy);
}

/* Sponsors */
.sponsor-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  align-items: center;
}
.sponsor-row img {
  max-height: 60px;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.2s;
}
.sponsor-row img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════
   COACH CARD OVERLAY  (Django Girls "Badass" card style)
   ═══════════════════════════════════════════════════════ */
.coach-spotlight-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
}
.coach-card-overlay {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 180px;
  border-radius: 0;
  border: 2px solid var(--py-navy);
  box-shadow: 5px 5px 0 var(--py-navy);
  overflow: hidden;
  background: var(--py-navy);
  transition: all 0.2s ease;
}
.coach-card-overlay:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--py-navy);
}
.coach-card-overlay__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.3s;
}
.coach-card-overlay:hover .coach-card-overlay__img {
  filter: grayscale(0%);
}
.coach-card-overlay__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--py-blue);
  color: #fff;
  font-size: 3rem;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 800;
}
.coach-card-overlay__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 55%);
}
.coach-card-overlay__name {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  color: #fff;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.1;
}
.coach-card-overlay__name small {
  display: block;
  font-size: 0.75rem;
  font-family: "Martian Mono", monospace;
  opacity: 1;
  color: var(--py-yellow);
}

/* ═══════════════════════════════════════════════════════
   SHOW ALL EVENTS LINK
   ═══════════════════════════════════════════════════════ */
.show-all-link {
  text-align: center;
  margin-top: 2rem;
  font-style: italic;
}
.show-all-link a {
  color: var(--py-navy);
  font-weight: 600;
  text-decoration: underline;
  font-size: 1rem;
}
.show-all-link a:hover {
  color: var(--py-blue);
}

/* ═══════════════════════════════════════════════════════
   MLH NEO-BRUTALIST 3D ARROW CARD BUTTONS
   ═══════════════════════════════════════════════════════ */
.btn-arrow-3d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.25rem;
  background-color: #FFB800 !important; /* MLH Golden Yellow */
  border: 2.5px solid #16213e !important;
  box-shadow: 2.5px 2.5px 0 #16213e !important;
  border-radius: 4px;
  color: #16213e !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
}

.group:hover .btn-arrow-3d,
.mlh-action-card:hover .btn-arrow-3d {
  transform: translateX(3px);
  box-shadow: 1px 1px 0 #16213e !important;
}

.mlh-action-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff !important;
  border: 2.5px solid #16213e !important;
  box-shadow: 4px 4px 0 #16213e !important;
  padding: 0.85rem 1.25rem;
  text-decoration: none !important;
  transition: all 0.15s ease;
  cursor: pointer;
  border-radius: 0px;
}

.mlh-action-card:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #16213e !important;
  background-color: #ffffff !important;
}

/* ═══════════════════════════════════════════════════════
   UNIVERSAL NEO-BRUTALIST BUTTONS
   ═══════════════════════════════════════════════════════ */
.btn-brutal-cta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background-color: #ffffff !important;
  border: 2.5px solid #16213e !important;
  box-shadow: 5px 5px 0px #16213e !important;
  padding: 1rem 1.25rem !important;
  text-decoration: none !important;
  transition: all 0.15s ease-in-out !important;
  cursor: pointer !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.btn-brutal-cta:hover {
  transform: translate(2px, 2px) !important;
  box-shadow: 2px 2px 0px #16213e !important;
  background-color: #ffffff !important;
}

.btn-brutal-hero {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background-color: #ffffff !important;
  border: 2.5px solid #16213e !important;
  box-shadow: 5px 5px 0px #16213e !important;
  padding: 1.15rem 2rem !important;
  text-decoration: none !important;
  transition: all 0.15s ease-in-out !important;
  cursor: pointer !important;
  gap: 1.5rem !important;
  box-sizing: border-box !important;
}

.btn-brutal-hero:hover {
  transform: translate(2px, 2px) !important;
  box-shadow: 2px 2px 0px #16213e !important;
  background-color: #ffffff !important;
}

.btn-brutal-inline {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background-color: #ffffff !important;
  border: 2.5px solid #16213e !important;
  box-shadow: 4px 4px 0px #16213e !important;
  padding: 0.8rem 1.25rem !important;
  text-decoration: none !important;
  transition: all 0.15s ease-in-out !important;
  cursor: pointer !important;
  width: auto !important;
  flex-shrink: 0 !important;
  gap: 1rem !important;
  box-sizing: border-box !important;
}

.btn-brutal-inline:hover {
  transform: translate(2px, 2px) !important;
  box-shadow: 2px 2px 0px #16213e !important;
  background-color: #ffffff !important;
}

/* ═══════════════════════════════════════════════════════
   VERTICAL HEADER ACCENT STROKES
   ═══════════════════════════════════════════════════════ */
.header-stroke-blue {
  border-left: 5px solid #306998 !important;
  padding-left: 1rem !important;
}

.header-stroke-yellow {
  border-left: 5px solid #FFB800 !important;
  padding-left: 1rem !important;
}

/* Hero Back Button */
.btn-all-events-hero {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.375rem !important;
  font-family: "Martian Mono", monospace !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #ffffff !important;
  background-color: #16213e !important;
  padding: 0.45rem 0.85rem !important;
  border: 2px solid #ffffff !important;
  margin-bottom: 1rem !important;
  box-shadow: 3px 3px 0 #16213e !important;
  transition: all 0.15s ease-in-out !important;
  text-decoration: none !important;
}
.btn-all-events-hero:hover {
  background-color: #FFB800 !important;
  color: #16213e !important;
  border-color: #16213e !important;
}
.btn-all-events-hero:hover * {
  color: #16213e !important;
}

/* ═══════════════════════════════════════════════════════
   DARK YELLOW BADGES & HEADERS (Non-clickable static text tags)
   ═══════════════════════════════════════════════════════ */
.badge-dark-yellow,
.tag-dark-yellow,
.bg-dark-yellow,
.bg-shield-yellow-dark {
  background-color: #E5A700 !important;
  color: #16213e !important;
}

