/*
Theme Name: Bayside – Be Friendly, Hate-Free Schools
Theme URI: https://example.com/bayside-be-friendly-hate-free-schools
Author: Generated by GPT-5.1 Thinking
Author URI: https://openai.com
Description: A professional, child-friendly WordPress theme for Bayside Public School (HPEDSB) to support friendliness, anti-racism, and safe, inclusive schools.
Version: 2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bayside-be-friendly-hate-free
Tags: education, anti-racism, bullying-prevention, responsive, one-column, accessibility-ready
*/

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f7fb;
  color: #1f2933;
  line-height: 1.6;
}

a { color: #1d6fd8; text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

.site-header {
  background: radial-gradient(circle at 0 0, #74c0fc, #4263eb);
  color: #fff;
  padding: 1.2rem 1rem 1rem;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.28);
}

.site-header-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-branding-main { display: flex; flex-direction: column; gap: 0.1rem; }

.site-title { font-size: 1.6rem; font-weight: 800; letter-spacing: 0.02em; }

.site-tagline { font-size: 0.9rem; opacity: 0.95; }
.site-tagline span { font-weight: 600; }

.nav-primary { display: flex; align-items: center; }

.nav-primary ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav-primary a {
  background: rgba(255,255,255,0.14);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
}

.nav-primary a:hover,
.nav-primary a:focus {
  background: rgba(255,255,255,0.25);
}

.site-main {
  max-width: 1140px;
  margin: 1.8rem auto 3rem;
  padding: 0 1rem;
}

.section {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.75rem 1.6rem;
  margin-bottom: 1.6rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.section h1,
.section h2 { font-size: 1.5rem; margin-bottom: 0.8rem; }
.section h3 { font-size: 1.15rem; margin: 1.1rem 0 0.45rem; }
.section p { margin-bottom: 0.55rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #e7f5ff;
  color: #1c7ed6;
  margin-bottom: 0.45rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 1.6rem;
  align-items: center;
}

.hero-text h1 { font-size: 2rem; margin-bottom: 0.7rem; }
.hero-text p { font-size: 1rem; margin-bottom: 0.7rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.93rem;
  font-weight: 600;
  transition: transform 0.08s ease-out, box-shadow 0.08s ease-out, background 0.1s ease-out;
}

.btn-primary {
  background: linear-gradient(135deg, #1d72d8, #228be6);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(34, 139, 230, 0.35);
}

.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(34, 139, 230, 0.45);
}

.btn-secondary {
  background: #ffffff;
  color: #1d72d8;
  border: 1px solid rgba(15, 23, 42, 0.15);
}

.btn-secondary:hover,
.btn-secondary:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.hero-graphic {
  background: radial-gradient(circle at 0 0, #e7f5ff, #ffffff);
  border-radius: 1.25rem;
  padding: 1rem;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 0.9rem;
}

.card {
  border-radius: 0.9rem;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.card h3 { margin-bottom: 0.35rem; }

ul.checklist { list-style: none; padding-left: 1.2rem; }
ul.checklist li { margin-bottom: 0.25rem; }
ul.checklist li::before {
  content: "✔";
  margin-left: -1.2rem;
  margin-right: 0.4rem;
  color: #2f9e44;
  font-size: 0.85rem;
}

.pledge-card {
  background: #e7f5ff;
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid #d0ebff;
}

.pledge-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.pledge-form label { font-size: 0.9rem; font-weight: 600; }

.pledge-form input[type="text"],
.pledge-form select {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid #ced4da;
  font-size: 0.95rem;
}

.pledge-note { font-size: 0.8rem; color: #495057; margin-top: 0.25rem; }
.pledge-status { margin-top: 0.5rem; font-size: 0.9rem; }

.game-container { margin-top: 0.75rem; }
.game-question { font-weight: 600; margin-bottom: 0.5rem; }
.game-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.game-option {
  padding: 0.55rem 0.7rem;
  border-radius: 0.7rem;
  border: 1px solid #dee2e6;
  background: #fff;
  cursor: pointer;
  font-size: 0.95rem;
  text-align: left;
}

.game-option.correct { border-color: #2f9e44; background: #ebfbee; }
.game-option.incorrect { border-color: #e03131; background: #fff5f5; }

.game-progress { font-size: 0.85rem; color: #495057; }
.game-feedback { margin-top: 0.4rem; font-size: 0.9rem; }

.site-footer {
  text-align: center;
  padding: 1.6rem 1rem 2.2rem;
  font-size: 0.8rem;
  color: #6b7280;
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .site-header-inner { flex-direction: column; align-items: flex-start; }
  .nav-primary ul { justify-content: flex-start; }
}
