/* ==========================================================================
   Windsor Academy Portal — brand styling
   Adjust --wa-navy / --wa-gold below if they don't match waknights.com
   exactly (open your browser dev tools on waknights.com to check).
   ========================================================================== */

:root {
  --wa-navy: #0b2545;
  --wa-navy-light: #123564;
  --wa-gold: #c9a227;
  --wa-gold-light: #e0c15c;
  --wa-cream: #f7f5f0;
  --wa-text: #23262b;
  --wa-radius: 10px;
  --wa-shadow: 0 2px 10px rgba(11, 37, 69, 0.08);
  --wa-shadow-hover: 0 8px 24px rgba(11, 37, 69, 0.16);
  --wa-font: 'Georgia', 'Times New Roman', serif;
  --wa-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.wap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.wap-card {
  background: #fff;
  border-radius: var(--wa-radius);
  box-shadow: var(--wa-shadow);
  border-top: 4px solid var(--wa-gold);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  font-family: var(--wa-font-body);
  color: var(--wa-text);
  text-decoration: none;
}

.wap-card:hover {
  box-shadow: var(--wa-shadow-hover);
  transform: translateY(-2px);
}

.wap-card-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.wap-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.wap-card-date {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wa-gold);
  font-weight: 700;
}

.wap-card-title {
  font-family: var(--wa-font);
  color: var(--wa-navy);
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 4px;
}

.wap-card-content {
  font-size: 15px;
  line-height: 1.55;
  color: #4a4d52;
}

.wap-card-content p:last-child {
  margin-bottom: 0;
}

.wap-btn {
  align-self: flex-start;
  margin-top: 10px;
  background: var(--wa-navy);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.wap-btn:hover {
  background: var(--wa-gold);
  color: var(--wa-navy) !important;
}

.wap-btn-disabled {
  align-self: flex-start;
  margin-top: 10px;
  background: #e3e3e3;
  color: #888 !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.wap-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #777;
  padding: 40px 0;
  font-style: italic;
}

/* ---------------- Office Forms & Links: icon-style cards ---------------- */

.wap-form-card,
.wap-link-card {
  flex-direction: row;
  align-items: flex-start;
  border-top: none;
  border-left: 4px solid var(--wa-gold);
}

.wap-card-icon {
  flex: 0 0 64px;
  height: 64px;
  margin: 22px 0 0 20px;
  background: var(--wa-navy);
  color: var(--wa-gold-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.wap-link-card .wap-card-icon {
  font-size: 22px;
}

.wap-link-host {
  font-size: 12px;
  color: #8a8d92;
}

/* ---------------- Links page grouping ---------------- */

.wap-links-group {
  font-family: var(--wa-font);
  color: var(--wa-navy);
  border-bottom: 2px solid var(--wa-gold);
  padding-bottom: 8px;
  margin: 32px 0 4px;
}

.wap-links-group:first-child {
  margin-top: 8px;
}

@media (max-width: 480px) {
  .wap-grid {
    grid-template-columns: 1fr;
  }
}
