/*
 * Avondale University brand layer for assessment.avondale.edu.au
 * Loaded last on every page so it overrides the legacy inline styles.
 * Source: https://www.avondale.edu.au/branding/ (2025 Brand Guidelines)
 *   - Open Sans for all text; body 16px / 1.4, weight 400
 *   - Global colours only, used as accents
 *   - 10pt spacing multiples, 4pt rounded corners on buttons
 */
:root {
  --au-yellow: #ffcf01;
  --au-blue: #003471;
  --au-grey: #efefef;
  --au-teal: #77cccc;
  --au-dark-teal: #337890;
  --au-light-teal: #c5ddd9;
  --au-text: #1a1a1a;
  --au-font: "Open Sans", Arial, Helvetica, sans-serif;
}

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #ffffff;
  color: var(--au-text);
  font-family: var(--au-font);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 400;
}
/* Legacy pages hard-code Segoe UI on dozens of classes */
body, body *:not(svg):not(path) { font-family: var(--au-font) !important; }

h1 { font-size: 36px; } h2 { font-size: 30px; } h3 { font-size: 24px; }
h4 { font-size: 20px; } h5 { font-size: 18px; } h6 { font-size: 16px; }
h1, h2, h3, h4, h5, h6 { color: var(--au-blue); font-weight: 600; line-height: 1.2; margin: 0 0 10px; }

a { color: var(--au-blue); }
a:hover, a:focus { color: var(--au-dark-teal) !important; }
a:focus-visible { outline: 2px solid var(--au-yellow); outline-offset: 2px; }

/* Legacy fixed-width layout tables: keep the layout, stop them overflowing small screens */
table[style*="1024px"] { width: calc(100% - 32px) !important; max-width: 1024px; margin-left: auto; margin-right: auto; }
img { max-width: 100%; height: auto; }
iframe, video, object, embed { max-width: 100%; }
@media (max-width: 700px) {
  /* Stack the legacy two/three-column layout tables on phones */
  table[style*="1024px"] > tbody > tr > td { display: block; width: auto !important; height: auto !important; }
  table { max-width: 100%; }
  td { overflow-wrap: anywhere; }
}

/* ---------- Header ---------- */
.au-header__inner, .au-nav__inner, .au-sitebar__inner, .au-footer__inner, .au-pagename, .au-cards, .au-intro {
  /* Line up with the legacy 1024px content tables (cellpadding 4), keep a 16px gutter on small screens */
  box-sizing: border-box; width: calc(100% - 32px); max-width: 1024px;
  margin-left: auto !important; margin-right: auto !important; padding-left: 4px !important; padding-right: 4px !important;
}
.au-header { background: #ffffff; border-bottom: 4px solid var(--au-yellow); }
.au-header__inner {
  max-width: 1024px; margin: 0 auto; padding: 20px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.au-logo { display: block; line-height: 0; }
.au-logo img { height: 64px; width: auto; display: block; }
.au-site { border-left: 1.5px solid #cccccc; padding-left: 20px; min-height: 50px; display: flex; flex-direction: column; justify-content: center; }
.au-site__title, .au-site__title:visited { color: var(--au-blue); font-size: 24px; font-weight: 600; line-height: 1.2; text-decoration: none; }
.au-site__parent, .au-site__parent:visited { color: var(--au-dark-teal); font-size: 16px; text-decoration: none; }

.au-nav { background: var(--au-blue); }
.au-nav__inner {
  max-width: 1024px; margin: 0 auto; padding: 0 20px;
  display: flex; flex-wrap: wrap; gap: 0 30px; align-items: center;
}
.au-nav a, .au-nav a:visited {
  color: #ffffff !important; text-decoration: none; font-size: 16px;
  padding: 14px 0 11px; border-bottom: 3px solid transparent;
}
.au-nav a:hover, .au-nav a:focus { color: #ffffff !important; border-bottom-color: var(--au-yellow); }
.au-nav a[aria-current="page"] { border-bottom-color: var(--au-yellow); }

/* Page/section name (Dreamweaver "PageName" region) */
.au-pagename { max-width: 1024px; margin: 30px auto 10px; padding: 0 20px; box-sizing: border-box; }
.au-pagename p { margin: 0; }
.au-pagename, .au-pagename * {
  color: var(--au-blue) !important; font-size: 30px !important; font-weight: 600 !important;
  line-height: 1.2 !important; text-decoration: none !important; background: none !important;
}

/* ---------- Home page section cards ---------- */
.au-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px;
  max-width: 1024px; margin: 20px auto 40px; padding: 0 20px; box-sizing: border-box;
}
.au-card, .au-card:visited {
  display: block; padding: 20px; border: 1.5px solid var(--au-light-teal); border-top: 4px solid var(--au-yellow);
  border-radius: 4px; background: #ffffff; color: var(--au-text); text-decoration: none;
}
.au-card:hover, .au-card:focus { border-color: var(--au-dark-teal); border-top-color: var(--au-yellow); background: var(--au-grey); }
.au-card__title { display: block; color: var(--au-blue); font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.au-card__text { display: block; color: var(--au-text) !important; font-size: 16px; }
.au-card__more { display: block; margin-top: 10px; color: var(--au-dark-teal); }
.au-intro { max-width: 1024px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; font-size: 18px; }

/* ---------- Footer ---------- */
.au-sitebar { background: var(--au-grey); margin-top: 40px; }
.au-sitebar__inner {
  max-width: 1024px; margin: 0 auto; padding: 20px;
  display: flex; flex-wrap: wrap; gap: 10px 30px; font-size: 14px;
}
.au-sitebar a, .au-sitebar a:visited { color: var(--au-blue); text-decoration: none; }
.au-sitebar a:hover { text-decoration: underline; }

.au-footer { background: #000000; color: #ffffff; font-size: 13px; line-height: 1.4; }
.au-footer__inner { max-width: 1024px; margin: 0 auto; padding: 30px 20px 20px; box-sizing: border-box; }
.au-footer__logo img { height: 56px; width: auto; display: block; margin-bottom: 20px; }
.au-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.au-footer h2 { color: var(--au-yellow); font-size: 14px; font-weight: 600; margin: 0 0 10px; }
.au-footer p { margin: 0; }
.au-footer a, .au-footer a:visited { color: #ffffff; }
.au-footer a:hover, .au-footer a:focus { color: var(--au-yellow) !important; }
.au-footer__social { display: flex; gap: 10px; margin: 20px 0 10px; }
.au-footer__social a { display: block; line-height: 0; }
.au-footer__social svg { width: 20px; height: 20px; fill: var(--au-yellow); }
.au-footer__legal { color: #ebebec; font-size: 11.2px; text-align: center; max-width: 80%; margin: 10px auto 0 !important; }
.au-footer__bottom { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 10px; font-size: 11.2px; color: #ebebec; }
.au-footer__bottom a { text-decoration: none; }

@media (max-width: 600px) {
  .au-logo img { height: 48px; }
  .au-site { border-left: 0; padding-left: 0; }
  .au-nav__inner { gap: 0 20px; }
  .au-pagename, .au-pagename * { font-size: 24px !important; }
  .au-footer__legal { max-width: 100%; }
}
