/* =========================================
   Azeri Chess Academy – Schools Styles
   File: schools-style.css
========================================= */

/* ---------- Global layout & typography ---------- */

:root {
  --primary-blue: #0057a3;
  --primary-blue-dark: #003b73;
  --accent-gold: #f2b535;
  --light-bg: #f4f6fb;
  --card-bg: #ffffff;
  --text-dark: #1d2433;
  --border-soft: #dde2ee;
  --max-width: 1120px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text-dark);
  background-color: var(--light-bg);
  line-height: 1.6;
}

.page-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.25rem 1.5rem 3rem;
}

/* ---------- Headings ---------- */

h1,
h2,
h3 {
  margin: 0 0 0.6rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

h1 {
  font-size: 2.1rem;
}

h2 {
  font-size: 1.6rem;
}

h3 {
  font-size: 1.25rem;
}

/* =========================================
   HERO (TOP SECTION)
========================================= */

.hero {
  position: relative;
  margin: 0 0 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

/* Hero specific to school programs */
.hero.hero--schools {
  padding: 2.4rem 2.6rem;
  background: linear-gradient(135deg, var(--primary-blue), #0073cf);
}

/* Single-column content */
.hero__content {
  max-width: 620px;
}

/* No right-side overlay */
.hero__image {
  display: none;
}

/* Ensure hero text is clearly readable */
.hero.hero--schools h1,
.hero.hero--schools p,
.hero.hero--schools li {
  color: #ffffff;
}

.hero__tagline {
  font-size: 1.05rem;
  margin: 0 0 1rem;
  opacity: 0.95;
}

.hero__bullets {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  font-size: 0.97rem;
}

.hero__bullets li {
  margin-bottom: 0.25rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* =========================================
   SECTIONS (default card look)
========================================= */

.section {
  margin: 1.5rem 0;
  padding: 2.25rem 2rem;
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.section--alt {
  background-color: #f8faff;
}

.section--cta {
  text-align: center;
}

.section__header {
  margin-bottom: 1.3rem;
}

.section__header--center {
  text-align: center;
}

.section--narrow {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================
   GRID LAYOUT
========================================= */

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* =========================================
   LISTS
========================================= */

.list {
  margin: 0;
  padding-left: 1.3rem;
}

.list--icon li {
  margin-bottom: 0.45rem;
}

/* Chess piece bullet */
.list--icon li::marker {
  content: "♕ ";
}

/* =========================================
   BUTTONS
========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: none;
  outline: none;
  cursor: pointer;
  background-color: var(--accent-gold);
  color: #1b1b1b;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  transition: transform 0.08s ease-out, box-shadow 0.08s ease-out,
    background-color 0.08s ease-out;
}

.btn:hover {
  background-color: #ffd35b;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.2);
}

.btn--secondary {
  background-color: #ffffff;
  color: #103b78;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.12);
}

.btn--secondary:hover {
  background-color: #f5f7fc;
}

/* =========================================
   GENERIC FORM CONTAINER (for non-WPForms use)
========================================= */

.form-container {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 2rem 1.75rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.school-form {
  width: 100%;
}

/* Default: 2-column layout on desktop */
.form-grid {
  display: grid;
  gap: 1.25rem 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-group {
  display: flex;
  flex-direction: column;
}

.field-group--full {
  grid-column: 1 / -1;
}

.field-label {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.field-required {
  color: #d22;
  margin-left: 0.2rem;
}

.field-input,
.field-textarea,
select.field-input {
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  padding: 0.55rem 0.65rem;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.12s ease-out, box-shadow 0.12s ease-out;
}

.field-input:focus,
.field-textarea:focus,
select.field-input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(0, 87, 163, 0.22);
}

.field-textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  margin-top: 0.25rem;
}

.checkbox-group label {
  font-size: 0.92rem;
}

.field-error {
  margin-top: 0.3rem;
  color: #d22;
  font-size: 0.85rem;
}

.form-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.form-note {
  font-size: 0.9rem;
  color: #555;
}

/* =========================================
   SCHOOL CARDS (registration page)
========================================= */

.school-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.school-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  padding: 1.25rem 1.2rem 1.4rem;
  background-color: #ffffff;
  box-shadow: 0 6px 15px rgba(15, 23, 42, 0.04);
}

.school-card__details {
  font-size: 0.92rem;
  margin: 0.4rem 0 0.9rem;
}

/* =========================================
   RESPONSIVE
========================================= */

/* Tablet & small laptop:
   - grid--2 sections stack into one column
   - gap between <ul> lists is smaller
   - forms become single-column */
@media (max-width: 1024px) {
  .grid--2 {
    grid-template-columns: minmax(0, 1fr);
    gap: 0rem;
  }

  .grid--2 .list {
    margin-top: 0;
    margin-bottom: 0rem;
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .hero.hero--schools {
    padding: 2rem 1.6rem;
  }

  .section {
    padding: 2rem 1.4rem;
  }
}

/* Small phones: even tighter gap between <ul>s */
@media (max-width: 600px) {
  .grid--2 {
    gap: 0.35rem;
  }
}

@media (max-width: 720px) {
  h1 {
    font-size: 1.8rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* =========================================
   Contact form tweaks (all pages)
========================================= */

/* Make the school contact section a wider card */
.section.section--narrow {
  max-width: 960px; /* use more of the screen than 780px */
}

/* Card around the form (your existing .form-container) */
.form-container {
  background-color: #ffffff;
  border-radius: 18px;
  border: 1px solid #dde2ee;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

/* Let WPForms fill the card nicely */
#wpforms-1153.wpforms-container,
#wpforms-1153.wpforms-container-full {
  max-width: 100%;
  margin: 0;
}

/* =========================================
   SCHOOL PROGRAMS OVERVIEW PAGE (ID 1127)
   – flat, same-colored sections under hero
========================================= */

.page-id-1127 .page-wrapper {
  max-width: 1200px; /* a bit wider for long text rows, optional */
}

/* Make all sections after the hero look like one continuous area */
.page-id-1127 .section,
.page-id-1127 .section--alt {
  background-color: #f8faff;   /* single light color for the whole page */
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 2.25rem 0;          /* vertical spacing only, no side padding */
  border: none;
}

/* Keep CTA centered but on the same flat background */
.page-id-1127 .section--cta {
  text-align: center;
}
