/* ==========================================================
   GLOBAL BASE STYLES
   ========================================================== */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600&family=Source+Serif+Pro:wght@400;600&display=swap');

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans Pro', sans-serif;
  margin: 0;
  background-color: #fff;
  color: #131E39; /* UoS colour midnight black */
  padding: 0 30px; /* global horizontal padding */
  box-sizing: border-box;
}

h1 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--midnight-black); /* switched from violet */
    margin: 25px 0 20px 0;
  }

  h2 {
    color: var(--dark-violet);
    padding-left: 10px;
    margin-top: 40px;
    margin-bottom: 12px;
    font-size: 1.4rem;
  }

h4 {
  text-decoration: underline;
}

/* ==========================================================
   TABLE / CONTENT STYLING


.content-table {
  border: 1px solid transparent;
  border-spacing: 0 10px;
}

.titlecolumn,
.slidescolumn {
  padding-left: 10px;
  padding-right: 20px;
  font-size: 1.2em;
}

.slidescolumn {
  text-align: left;
}

.assessmentcolumn {
  text-align: center;
  font-size: 0.8em;
}

.box {
  min-width: 160px;
  text-align: center;
  vertical-align: middle;
  border-radius: 8px;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15);
  padding: 5px;
}

   ========================================================== */

.title {
  font-size: 1.3em;
}
.subtitle {
  font-size: 1em;
  font-style: italic;
}
.highlight {
  font-size: 1.3em;
  font-weight: bold;
}

.siteStandardButton {
  margin: 20px;
  padding: 10px 20px;
  background-color: #440099;
  color: white;
  border: none;
  cursor: pointer;
}


.learning-outcomes {
  width: 80%;
  border-collapse: collapse;
  background-color: #E1F4F8;
  border-left: 5px solid #9ADBE8;
  padding: 8px;
}

/* ==========================================================
   DESIGN CYCLE COLOURS
   ========================================================== */

   .form { background-color: #7f7f7f;}
   .understand { background-color: #c98585; }
   .define { background-color: #cfa374; }
   .generate { background-color: #cfc874; }
   .select { background-color: #97c87a; }
   .specify { background-color: #76cbb3; }
   .plan { background-color: #76afd1; }
   .evaluate { background-color: #8791cf; }
   .communicate { background-color: #b885b8; }

/* ==========================================================
   TIMETABLE
   ========================================================== */

table.timetable { width: 100%; }

.day {
  background-color: black;
  color: white;
  font-weight: bold;
}

.break,
.breaktext {
  background-color: #E1F4F8;
  text-align: center;
  font-weight: bold;
}

.stafftext {
  background-color: #DACCEB;
}

.assessmentType,
.cellHeader {
  font-weight: normal;
  font-style: italic;
  font-size: 0.8em;
  color: #898F94;
}

.cellActivity { font-weight: bold; font-size: 1em; }
.cellDetails { font-size: 0.9em; }

td { border: 1px solid #ddd; }

/* ==========================================================
   FAQ
   ========================================================== */

.faq-container { margin: 10px; }
.faq-item {
  margin: 10px 0;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
}
.faq-question {
  cursor: pointer;
  padding: 10px;
  background-color: #f1f1f1;
}
.faq-answer {
  display: none;
  padding: 10px;
  background-color: #ffffff;
}

/* ==========================================================
   LANDING PAGE
   ========================================================== */

.landing_body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  text-align: center;
}

.landing_container {
  max-width: 500px;
  width: 100%;
}

.landing_container h1 {
  font-size: 3em;
  margin-bottom: 0.5em;
}

.landing_container h2 {
  font-size: 1.5em;
  margin-bottom: 2em;
}

.landing_icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.landing_icon {
  margin: 1em;
  text-align: center;
}

.landing_icon img {
  max-width: 100px;
  height: auto;
}

.landing_icon p {
  margin-top: 0.2em;
  font-size: 1.5em;
}

.landing_icon a {
  text-decoration: none;
  color: inherit;
}

.landing_icon a p {
  font-size: 1.5em;
  color: #333;
}

@media (max-width: 600px) {
  .landing_icon { flex: 1 1 100%; }
}

/* ==========================================================
   NAVIGATION BAR
   ========================================================== */

nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #f5f5f5;
  padding: 5px 0;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

nav a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-size: 16px;
  padding: 0 15px;
}

nav img {
  vertical-align: middle;
  height: 30px;
  width: auto;
  margin-right: 8px;
}

@media (max-width: 900px) {
  nav a {
    font-size: 0;
    padding: 0 10px;
  }
  nav a img {
    margin-right: 0;
  }
}

/* ==========================================================
   PROJECTS MICROSITE
   ========================================================== */

   :root {
    --brand-violet: #440099;
    --dark-violet: #24125E;
    --electric-violet: #7000FF;
    --powder-violet: #A78CFA;
    --pale-violet: #C6B8FF;
    --wave-white: #F8F8F9;
    --midnight-black: #131E39;
  }
  
  .projects-page {
    font-family: 'Source Sans Pro', sans-serif;
    color: var(--midnight-black);
    background: #fff;
    margin: 0;
    padding: 0 30px; /* matches global layout padding */
  }
  
  /* Header */
  .projects-header {
    max-width: 1200px;
    margin: 0 auto 20px auto;
  }
  
  .projects-intro {
    max-width: 1200px;
    margin: 0 auto 40px auto;
    color: #333;
    line-height: 1.5;
    font-size: 1rem;
  }
  
  /* Theme grid */
  .theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto 48px auto;
    align-items: stretch; /* ensures equal height cards */
  }
  
  .theme-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: var(--midnight-black);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(19, 30, 57, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
  }
  
  .theme-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(68, 0, 153, 0.16);
  }
  
  .theme-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
  }
  
  .theme-card div {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px;
    background: var(--wave-white);
    color: var(--dark-violet);
    min-height: 56px; /* prevents white strip when text is one line */
  }
  
  /* Footer text */
  .projects-footer {
    max-width: 1200px;
    margin: 24px auto 8px auto;
    color: #666;
    font-size: 0.9rem;
  }
  
  /* ==========================================================
     PROJECT DETAIL PAGES (per-theme pages)
     ========================================================== */
  
  .project-detail main {
    max-width: 1100px;
    margin: 0 auto;
    line-height: 1.7;
    color: #333;
  }
  
  /* Header image grid */
  .theme-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
  }
  
  .theme-hero img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  }
  
  /* Student challenge boxes */
  .student-challenge {
    background: var(--wave-white);
    border-left: 5px solid var(--brand-violet);
    padding: 12px 16px;
    margin: 18px 0;
    border-radius: 6px;
    font-size: 0.96rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }
  
  .student-challenge strong {
    color: var(--brand-violet);
  }
  
  /* Reference list */
  #references {
    margin-top: 60px;
    border-top: 2px solid var(--powder-violet);
    padding-top: 10px;
  }
  
  ol {
    padding-left: 22px;
  }
  
  ol li {
    margin-bottom: 10px;
    line-height: 1.5;
  }
  
  ol a {
    color: var(--electric-violet);
    text-decoration: none;
  }
  
  ol a:hover {
    text-decoration: underline;
  }

  /* ==========================================================
   CONTENT CARD GRID (Design Cycle Menu)
   ========================================================== */

.card-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* Base card appearance */
.card {
  min-height: 120px;
  background: #f2f2f2; /* light grey */
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.20);
}

/* When a card expands */
.card.expanded {
  background: #e8e8e8;
  grid-column: span 2;
}

@media (min-width: 900px) {
  .card.expanded {
      grid-column: span 3;
  }
}

/* Phase oval – uses existing design cycle classes e.g. .form, .understand etc */
.phase-chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

/* readable text on the lighter colours */
.generate,
.select {
  color: #333 !important;
}

/* Titles inside cards */
.card-title {
  margin: 6px 0 4px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--midnight-black);
}

.card-tagline {
  margin: 0;
  font-size: 0.85rem;
  color: #555;
}

/* Hidden section that expands open */
.card-extra {
  max-height: 0;
  overflow: hidden;
  transition: max-height 250ms ease, margin-top 250ms ease;
}

.card.expanded .card-extra {
  margin-top: 10px;
  max-height: 220px;
}

.card-extra p {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: #444;
}

.card-links a {
  display: inline-block;
  text-decoration: none;
  font-size: 0.85rem;
  padding: 7px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff, #f3f3f3);
  border: 1px solid #ccc;
  color: #333;
  margin-right: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.10);
  transition: background 150ms ease, color 150ms ease;
}

.card-links a:hover {
  background: linear-gradient(135deg, #f8f8f8, #e6e6e6);
  box-shadow: 0 3px 8px rgba(0,0,0,0.18);
}

/* ESC hint */
.esc-hint {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #777;
  opacity: 0;
  transition: opacity 160ms ease-out;
}

.esc-hint.visible {
  opacity: 1;
}

/* Premium button, same size as normal buttons */
.card-links a.gdl-card-link {
  display: inline-block;
  text-decoration: none;
  font-size: 0.85rem;       /* same as normal */
  padding: 7px 18px;        /* same as normal */
  border-radius: 999px;     /* pill shape */

  /* Gentle lilac background */
  background: #e7e1fb;

  /* Soft violet border */
  border: 1px solid #a58ce0;

  /* Dark violet text for readability */
  color: #24125E;

  font-weight: 600;
  margin-right: 10px;

  /* Light shadow, same feel as normal but slightly nicer */
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);

  transition:
      background 150ms ease,
      color 150ms ease,
      box-shadow 150ms ease;
}

/* Hover state — still readable, not harsh */
.card-links a.gdl-card-link:hover {
  background: #d7cdfa;     /* slightly deeper lilac */
  color: #000;             /* keeps contrast */
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}


