/* ============================================================
   PROJECT BLUE — Unified Global CSS
   SDG 6: Clean Water and Sanitation

   TEAM INSTRUCTIONS:
   - All pages must link: <link rel="stylesheet" href="style.css">
   - Do NOT modify :root variables, header, nav, or footer rules
   - Do NOT add page-specific styles here
   - Student 1 owns and maintains this file
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');

/* ============================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --primary:        #304674;
  --primary-dark:   #1b2e4d;
  --primary-light:  #3d5a96;
  --accent:         #1a9fd4;
  --accent-light:   #5bc8f0;
  --accent-warm:    #e8a020;
  --surface:        #eaf6fb;
  --surface-dark:   #d4edf7;
  --white:          #ffffff;
  --text-dark:      #1b2a3b;
  --text-mid:       #4a637a;
  --text-light:     #8aaabf;
  --danger:         #c0392b;
  --card-shadow:    0 4px 20px rgba(48,70,116,0.11);
  --radius:         12px;
  --radius-sm:      7px;
  --transition:     0.25s ease;
  --font-body:      'Lato', 'Helvetica Neue', Arial, sans-serif;
}

/* ============================================================
   2. RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.75;
}

img { max-width: 100%; height: auto; display: block; margin-bottom: 8px; }
a   { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.1rem; }
p  { margin-bottom: 1em; color: var(--text-mid); }

/* ============================================================
   4. HEADER — DO NOT MODIFY
   ============================================================ */
header {
  background: var(--primary-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 66px;
  max-width: 1320px;
  margin: 0 auto;
}

/* ============================================================
   5. LOGO — DO NOT MODIFY
   ============================================================ */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(91,200,240,0.5));
}

.logo-text {
  font-family: var(--font-body);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
  text-transform: capitalize;
}

/* ============================================================
   6. NAVIGATION — DO NOT MODIFY
   ============================================================ */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  font-family: var(--font-body);
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
}

/* Active page — each student adds class="active" to their own page link */
.nav-links a.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* ============================================================
   7. MAIN
   ============================================================ */
main { min-height: 60vh; }

/* ============================================================
   8. BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 11px 28px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  transition: all var(--transition);
  border: 2px solid transparent;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,159,212,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.2);
  color: var(--white);
}

/* ============================================================
   9. CARDS
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(48,70,116,0.17);
}

.card-img   { width: 100%; height: 210px; object-fit: cover; }
.card-body  { padding: 24px; }
.card-body h3  { margin-bottom: 8px; font-size: 1.02rem; }
.card-body p   { font-size: 0.88rem; margin-bottom: 12px; }
.card-body ul  { padding-left: 18px; margin-bottom: 14px; }
.card-body ul li { font-size: 0.85rem; color: var(--text-mid); margin-bottom: 5px; }

/* ============================================================
   10. LAYOUT HELPERS
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 72px 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { font-size: 1.75rem; margin-bottom: 10px; }
.section-title p  { color: var(--text-light); font-size: 0.93rem; max-width: 540px; margin: 0 auto; }

/* ============================================================
   11. GRIDS
   ============================================================ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* ============================================================
   12. FOOTER — DO NOT MODIFY structure
   ============================================================ */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 56px 40px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo { margin-bottom: 14px; }

.footer-brand p {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.42);
  max-width: 250px;
  line-height: 1.75;
  margin: 0;
}

.footer-section h4 {
  font-family: var(--font-body);
  color: var(--white);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-section a {
  display: block;
  font-family: var(--font-body);
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  padding: 5px 0;
  transition: color var(--transition);
}

.footer-section a:hover { color: var(--accent-light); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 0 22px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.28);
  line-height: 1.9;
}

.footer-bottom a { color: rgba(255,255,255,0.4); font-size: 0.78rem; }
.footer-bottom a:hover { color: var(--accent-light); }

/* ============================================================
   13. RESPONSIVE — GLOBAL
   ============================================================ */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  header nav   { padding: 0 20px; }
  .nav-links a { padding: 6px 9px; font-size: 0.74rem; }
  .logo-text   { font-size: 0.95rem; }
  footer       { padding: 40px 24px 0; }
}

@media (max-width: 580px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

/* ============================================================
   ST4 — STUDENT 4 SPECIFIC STYLES
   Scoped to: content_ST4.html, profile.html, sitemap.html,
              pageEditor_ST4.html, validation_ST4.html
   Prabhakar Khatri — w2152989
   Role: Water-Related Ecosystems & Interactive Data / SVG Lead
   ============================================================ */

/* --- ST4 Content Page (content_ST4.html) --- */
#content_ST4_html main.container {
  padding-top: 40px;
  padding-bottom: 60px;
}

#content_ST4_html .section-title h1 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

#content_ST4_html .section-title p {
  color: var(--text-mid);
  font-size: 0.95rem;
}

/* Internal anchor navigation */
#content_ST4_html .internal-nav {
  background: var(--surface);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 36px;
}

#content_ST4_html .internal-nav p {
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
}

#content_ST4_html .internal-nav ul {
  list-style: none;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

#content_ST4_html .internal-nav a {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color var(--transition);
}

#content_ST4_html .internal-nav a:hover { color: var(--primary); }

/* Content sections */
#content_ST4_html .content-body section {
  margin-bottom: 52px;
}

#content_ST4_html .content-body h2 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--surface-dark);
}

/* Flex image+text pairs */
#content_ST4_html .content-body figure {
  margin: 0;
}

#content_ST4_html .content-body figure img {
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  width: 100%;
  transition: transform var(--transition);
}

#content_ST4_html .content-body figure img:hover {
  transform: scale(1.02);
}

#content_ST4_html .content-body figcaption {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 6px;
  font-style: italic;
}

/* Blockquote */
#content_ST4_html blockquote {
  border-left: 4px solid var(--accent);
  background: var(--surface);
  padding: 18px 24px;
  border-radius: var(--radius-sm);
  color: var(--text-mid);
  font-style: italic;
  margin: 20px 0;
}

/* Data table */
#content_ST4_html .data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

#content_ST4_html .data-table th {
  background: var(--primary);
  color: var(--white);
  padding: 11px 14px;
  text-align: left;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

#content_ST4_html .data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--surface-dark);
  color: var(--text-mid);
}

#content_ST4_html .data-table tr:last-child td { border-bottom: none; }
#content_ST4_html .data-table tr:hover td { background: var(--surface); }

/* Back to top button */
#content_ST4_html .back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(26,159,212,0.4);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  z-index: 100;
}

#content_ST4_html .back-to-top:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

/* --- ST4 Profile / Sitemap / PageEditor / Validation shared --- */
#profile_html main.container,
#sitemap_html main.container,
#validation_ST4_html .container,
#pageEditor_ST4_html .container {
  padding-top: 36px;
  padding-bottom: 60px;
}

/* Student banner (stud section) */
.stud {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 32px 40px;
  text-align: center;
}

.stud h2 {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  opacity: 0.92;
}

/* --- Validation & PageEditor sections --- */
#validation_ST4_html .val-sec,
#pageEditor_ST4_html .report-sec {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 30px 36px;
  margin-bottom: 28px;
}

#validation_ST4_html .val-sec h2,
#pageEditor_ST4_html .report-sec h2 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--surface-dark);
}

#validation_ST4_html .v-status {
  display: inline-block;
  background: #27ae60;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}

#validation_ST4_html .v-reflection {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-mid);
  margin-bottom: 16px;
  line-height: 1.7;
}

#validation_ST4_html .val-sec img {
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-dark);
  margin-top: 12px;
  width: 100%;
}

/* Aside / Sidebar */
#validation_ST4_html aside,
#pageEditor_ST4_html aside {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  font-size: 0.88rem;
  position: sticky;
  top: 80px;
}

#validation_ST4_html aside h3,
#pageEditor_ST4_html aside h3 {
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#validation_ST4_html aside a,
#pageEditor_ST4_html aside a {
  display: block;
  padding: 5px 0;
  color: var(--text-mid);
  font-size: 0.85rem;
  transition: color var(--transition);
}

#validation_ST4_html aside a:hover,
#pageEditor_ST4_html aside a:hover {
  color: var(--accent);
}

/* Meeting log table */
#pageEditor_ST4_html table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 16px;
}

#pageEditor_ST4_html th {
  background: var(--primary);
  color: var(--white);
  padding: 10px 12px;
  text-align: left;
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#pageEditor_ST4_html td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--surface-dark);
  color: var(--text-mid);
  vertical-align: top;
}

#pageEditor_ST4_html tr:hover td { background: var(--surface); }

/* --- ST4 Responsive --- */
@media (max-width: 768px) {
  .stud { padding: 22px 20px; }
  .stud h2 { font-size: 1rem; }

  #content_ST4_html .internal-nav ul { flex-direction: column; gap: 8px; }

  #content_ST4_html .content-body div[style*="display: flex"] {
    flex-direction: column !important;
  }

  #content_ST4_html .content-body figure,
  #content_ST4_html .content-body img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  #validation_ST4_html .container,
  #pageEditor_ST4_html .container {
    flex-direction: column !important;
    padding: 0 15px;
  }

  #validation_ST4_html aside,
  #pageEditor_ST4_html aside {
    position: relative;
    top: 0;
    width: 100%;
    margin-top: 20px;
  }

  #validation_ST4_html .val-sec,
  #pageEditor_ST4_html .report-sec {
    padding: 18px 16px;
  }

  #profile_html main.container {
    padding: 16px;
    width: 100%;
    box-sizing: border-box;
  }

  #sitemap_html .sitemap-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #sitemap_html svg { min-width: 800px; }
}

/* ============================================================
   SITEMAP PAGE — #sitemap_html
   ============================================================ */

#sitemap_html main.container {
  padding-top: 48px;
  padding-bottom: 60px;
}

/* Page title area */
#sitemap_html .section-title h1 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

#sitemap_html .section-title p {
  color: var(--text-mid);
  font-size: 0.95rem;
}

/* SVG container */
#sitemap_html .sitemap-container {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--surface-dark);
  padding: 24px;
  overflow-x: auto;
  box-shadow: var(--card-shadow);
  margin-top: 28px;
}

/* SVG connector lines */
#sitemap_html .connector {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 6 3;
  opacity: 0.55;
}

/* SVG node circles */
#sitemap_html .node-circle {
  fill: var(--primary);
  stroke: var(--accent-light);
  stroke-width: 2.5;
  transition: fill 0.2s ease, r 0.2s ease;
}

#sitemap_html .node-link:hover .node-circle {
  fill: var(--accent);
  stroke: var(--white);
}

/* SVG node text labels */
#sitemap_html .node-text {
  fill: var(--white);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}

/* Clickable node wrapper */
#sitemap_html .node-link {
  cursor: pointer;
  text-decoration: none;
}

#sitemap_html .node-link:focus .node-circle {
  stroke: var(--accent-warm);
  stroke-width: 3;
}

/* Footer styling */
#sitemap_html footer {
  padding: 28px 40px;
}

#sitemap_html .footer-bottom {
  padding: 16px 0;
}

/* Sitemap responsive */
@media (max-width: 768px) {
  #sitemap_html main.container { padding-top: 24px; }
  #sitemap_html .section-title h1 { font-size: 1.6rem; }
  #sitemap_html .sitemap-container { padding: 12px; border-radius: var(--radius-sm); }
}


/* ============================================================
   SPLASH PAGE — #splash_html
   ============================================================ */
#splash_html {
  background: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

#splash_html .splash-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  gap: 18px;
}

#splash_html .splash-container img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 0;
  filter: drop-shadow(0 0 20px rgba(91,200,240,0.8));
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(91,200,240,0.8)); }
  50%       { filter: drop-shadow(0 0 36px rgba(91,200,240,1)); }
}

@keyframes spin { to { transform: rotate(360deg); } }

#splash_html .splash-title {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 4px;
  text-transform: capitalize;
  margin: 0;
}

#splash_html .splash-mission {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  max-width: 480px;
  line-height: 1.8;
  font-style: italic;
  margin: 0;
}

#splash_html .group-info {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.5px;
}

#splash_html .countdown {
  font-size: 0.88rem;
  color: var(--accent-light);
  font-weight: 700;
  letter-spacing: 1px;
}

#splash_html .loader {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255,255,255,0.12);
  border-top-color: var(--accent-light);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

#splash_html .skip-btn {
  display: inline-block;
  padding: 9px 24px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.6);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all var(--transition);
}

#splash_html .skip-btn:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

/* ============================================================
   INDEX — #index_html
   ============================================================ */
#index_html {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--primary-dark);
  color: var(--white);
  text-align: center;
  padding: 20px;
}

/* ============================================================
   HOME PAGE — hero, stats, tiles, mission
   ============================================================ */
.hero {
  position: relative;
  height: 96vh;
  background-color: #0c1c2e;
  overflow: hidden;
}

.herobg, .herocolor {
  position: absolute;
  inset: 0;
}

.herobg {
  background-image: url('image/bgg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.30;
}

.herocolor {
  background: linear-gradient(135deg, rgba(27,46,77,0.6) 0%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 80px;
  max-width: 680px;
}

.hero-tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--white);
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.22;
  margin-bottom: 20px;
}

.hero h1 em { font-style: normal; color: var(--accent-light); }

.hero-intro {
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
  max-width: 500px;
  margin-bottom: 32px;
}

.hero-ctas { overflow: hidden; }
.hero-ctas a { float: left; margin-right: 14px; }

.stats-bar { background-color: var(--primary); }
.stats-bar-inner { max-width: 1200px; margin: 0 auto; overflow: hidden; }

.stat-item {
  float: left;
  width: 25%;
  padding: 28px 22px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child { border-right: none; }
.stat-item .fig  { display: block; font-size: 2rem; font-weight: 900; color: var(--accent-light); margin-bottom: 6px; }
.stat-item .desc { font-size: 0.75rem; color: rgba(255,255,255,0.52); line-height: 1.45; }

.mission-wrap { background-color: #f2f8fd; padding: 80px 28px; }
.drop-list { list-style: none; padding: 0; margin: 10px 0 18px; }
.drop-list li { font-size: 0.83rem; color: var(--text-mid); padding: 5px 0 5px 18px; border-bottom: 1px solid #e4eff6; }
.drop-list li:last-child { border-bottom: none; }

.gallery-wrap { background-color: #0f1e33; padding: 72px 0 0; }
.gallery-wrap .section-title h2 { color: var(--white); }
.gallery-wrap .section-title p  { color: rgba(255,255,255,0.45); }
.tile-grid { overflow: hidden; }

.tile {
  position: relative;
  float: left;
  width: 25%;
  height: 300px;
  overflow: hidden;
  display: block;
  text-decoration: none;
}
.tile img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; transition: opacity var(--transition); }
.tile:hover img { opacity: 0.4; }
.tile:hover .tile-info { bottom: 0; }

.tile-info {
  position: absolute;
  bottom: -60px;
  left: 0; right: 0;
  padding: 22px;
  background-color: rgba(8,18,32,0.92);
  transition: bottom var(--transition);
}
.tile-region { font-size: 0.68rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-light); margin-bottom: 5px; }
.tile-info h3 { color: var(--white); font-size: 0.95rem; margin-bottom: 6px; }
.tile-info p  { color: rgba(255,255,255,0.65); font-size: 0.76rem; margin: 0; }
.tile-num { position: absolute; top: 14px; right: 14px; background-color: rgba(26,159,212,0.85); color: var(--white); font-size: 0.7rem; font-weight: 700; padding: 3px 10px; }

/* ============================================================
   GALLERY PAGE
   ============================================================ */
.page-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 52px 40px;
  text-align: center;
}
.page-banner h1 { color: var(--white); font-size: 2.2rem; margin-bottom: 10px; }
.page-banner p  { color: rgba(255,255,255,0.6); font-size: 0.95rem; }

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 40px 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.thumb-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  background: var(--surface-dark);
  transition: transform var(--transition), box-shadow var(--transition);
}
.thumb-card:hover { transform: scale(1.03); box-shadow: 0 8px 28px rgba(48,70,116,0.25); }
.thumb-card img   { width: 100%; height: 100%; object-fit: cover; display: block; }

.thumb-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 20px 12px 10px;
  opacity: 0;
  transition: opacity var(--transition);
}
.thumb-card:hover .thumb-label { opacity: 1; }

.expand-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(26,159,212,0.85);
  color: var(--white);
  border-radius: 50%;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.thumb-card:hover .expand-badge { opacity: 1; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 860px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.modal-image  { width: 100%; max-height: 520px; object-fit: contain; background: #000; display: block; }
.modal-body   { padding: 22px 28px; }
.modal-body h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 6px; }
.modal-body p  { font-size: 0.88rem; color: var(--text-mid); margin: 0; }
.modal-controls { display: flex; align-items: center; justify-content: space-between; padding: 12px 28px; border-top: 1px solid var(--surface-dark); }
.modal-close { background: none; border: none; font-size: 1.4rem; color: var(--text-mid); cursor: pointer; transition: color var(--transition); }
.modal-close:hover { color: var(--danger); }

/* ============================================================
   AIS PAGE — #ais_html
   ============================================================ */
#ais_html .ais-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 60px 40px;
  text-align: center;
}
#ais_html .ais-hero .page-tag {
  display: inline-block;
  background: rgba(91,200,240,0.18);
  color: var(--accent-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}
#ais_html .ais-hero h1 { color: var(--white); font-size: 2.2rem; margin-bottom: 12px; }
#ais_html .ais-hero p  { color: rgba(255,255,255,0.65); max-width: 520px; margin: 0 auto; }

#ais_html .ais-cards-section { max-width: 1200px; margin: 0 auto; padding: 48px 28px; }

#ais_html .action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

#ais_html .action-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
}
#ais_html .action-card:hover,
#ais_html .action-card.active {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(48,70,116,0.18);
  border-color: var(--accent);
}
#ais_html .card-select-bar { height: 5px; background: var(--surface-dark); transition: background var(--transition); }
#ais_html .action-card.active .card-select-bar { background: var(--accent); }
#ais_html .action-card-body { padding: 22px; }
#ais_html .action-card-body h3 { font-size: 1rem; color: var(--primary); margin-bottom: 8px; }
#ais_html .action-card-body p  { font-size: 0.85rem; color: var(--text-mid); margin: 0; }
#ais_html .card-tick { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--white); font-size: 0.75rem; display: inline-flex; align-items: center; justify-content: center; float: right; opacity: 0; transition: opacity var(--transition); }
#ais_html .action-card.active .card-tick { opacity: 1; }

#ais_html .ais-results { background: var(--primary-dark); padding: 48px 40px; display: none; }
#ais_html .ais-results.visible { display: block; }
#ais_html .results-inner   { max-width: 800px; margin: 0 auto; text-align: center; }
#ais_html .score-display   { font-size: 4rem; font-weight: 900; color: var(--accent-light); line-height: 1; margin-bottom: 8px; }
#ais_html .score-label     { color: rgba(255,255,255,0.55); font-size: 0.88rem; margin-bottom: 24px; }
#ais_html .impact-badge    { display: inline-block; padding: 6px 20px; border-radius: 20px; font-weight: 700; font-size: 0.88rem; margin-bottom: 20px; }
#ais_html .impact-level-label { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-bottom: 12px; }
#ais_html .impact-message  { color: rgba(255,255,255,0.55); font-size: 0.88rem; max-width: 500px; margin: 0 auto 28px; line-height: 1.7; }
#ais_html .results-stats   { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin: 28px 0; }
#ais_html .rsults-overlay  { position: absolute; inset: 0; background: rgba(27,46,77,0.9); display: flex; align-items: center; justify-content: center; }
#ais_html .btn-reset { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.7); padding: 10px 28px; border-radius: 4px; font-family: var(--font-body); font-weight: 700; font-size: 0.85rem; cursor: pointer; transition: all var(--transition); }
#ais_html .btn-reset:hover { background: rgba(255,255,255,0.1); color: var(--white); }

/* ============================================================
   FEEDBACK PAGE — #feedback_html
   ============================================================ */
#feedback_html .feedback-hero { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); padding: 60px 40px; text-align: center; }
#feedback_html .feedback-hero h1 { color: var(--white); font-size: 2.2rem; margin-bottom: 12px; }
#feedback_html .feedback-hero p  { color: rgba(255,255,255,0.6); max-width: 500px; margin: 0 auto; }
#feedback_html .feedback-hero .hero-tag { display: inline-block; background: rgba(91,200,240,0.18); color: var(--accent-light); font-size: 0.72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 5px 14px; border-radius: 20px; margin-bottom: 18px; }

#feedback_html .form-section  { max-width: 720px; margin: 48px auto; padding: 0 28px; }
#feedback_html .form-inner    { background: var(--white); border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 36px 40px; }
#feedback_html .form-group    { margin-bottom: 22px; }
#feedback_html .form-group label { display: block; font-weight: 700; font-size: 0.85rem; color: var(--primary); margin-bottom: 7px; }
#feedback_html .form-group input,
#feedback_html .form-group textarea,
#feedback_html .form-group select {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--surface-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
#feedback_html .form-group input:focus,
#feedback_html .form-group textarea:focus,
#feedback_html .form-group select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26,159,212,0.12); background: var(--white); }
#feedback_html .char-counter { font-size: 0.76rem; color: var(--text-light); text-align: right; margin-top: 4px; }
#feedback_html .error-msg    { font-size: 0.78rem; color: var(--danger); margin-top: 4px; display: none; }
#feedback_html .confirm-msg  { background: #eafaf1; border: 1px solid #27ae60; color: #1e8449; padding: 16px 20px; border-radius: var(--radius-sm); font-weight: 700; text-align: center; display: none; margin-top: 20px; }

#feedback_html .rating-summary { margin: 36px 0; padding: 28px; background: var(--surface); border-radius: var(--radius); }
#feedback_html .rating-score   { font-size: 3rem; font-weight: 900; color: var(--accent); }
#feedback_html .rating-label   { font-size: 0.85rem; color: var(--text-mid); }
#feedback_html .rating-meta    { font-size: 0.78rem; color: var(--text-light); margin-top: 6px; }
#feedback_html .big-num        { font-size: 2.8rem; font-weight: 900; color: var(--primary); }

#feedback_html .programme-section { background: #f7fafd; padding: 60px 28px; }
#feedback_html .programme-scroll  { overflow-x: auto; padding-bottom: 16px; }
#feedback_html .programme-grid    { display: flex; gap: 20px; min-width: max-content; }
#feedback_html .programme-controls { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
#feedback_html .prog-card      { background: var(--white); border-radius: var(--radius); box-shadow: var(--card-shadow); overflow: hidden; width: 260px; flex-shrink: 0; transition: transform var(--transition); }
#feedback_html .prog-card:hover { transform: translateY(-4px); }
#feedback_html .prog-card-img  { width: 100%; height: 160px; object-fit: cover; }
#feedback_html .prog-card-body { padding: 18px; }
#feedback_html .prog-tag       { display: inline-block; background: var(--surface); color: var(--accent); font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin-bottom: 8px; }
#feedback_html .review-card    { background: var(--white); border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 24px; margin-bottom: 20px; }
#feedback_html .review-rating  { color: var(--accent-warm); font-size: 1rem; margin-bottom: 8px; }
#feedback_html .review-footer  { font-size: 0.78rem; color: var(--text-light); margin-top: 12px; }

/* ============================================================
   TEAM PAGE — #team_html
   ============================================================ */
#team_html .team-hero { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); padding: 64px 40px; text-align: center; }
#team_html .team-hero h1 { color: var(--white); font-size: 2.4rem; margin-bottom: 12px; }
#team_html .team-hero .hero-tag { display: inline-block; background: rgba(91,200,240,0.18); color: var(--accent-light); font-size: 0.72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 5px 14px; border-radius: 20px; margin-bottom: 18px; }
#team_html .team-section { padding: 72px 28px; max-width: 1200px; margin: 0 auto; }
#team_html .team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

#team_html .member-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--card-shadow); overflow: hidden; cursor: pointer; transition: transform var(--transition), box-shadow var(--transition); position: relative; }
#team_html .member-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(48,70,116,0.18); }
#team_html .avatar-placeholder { height: 200px; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; font-weight: 900; color: var(--white); }
#team_html .avatar-s1 { background: linear-gradient(135deg, #304674, #1a9fd4); }
#team_html .avatar-s2 { background: linear-gradient(135deg, #1a9fd4, #5bc8f0); }
#team_html .avatar-s3 { background: linear-gradient(135deg, #3d5a96, #304674); }
#team_html .avatar-s4 { background: linear-gradient(135deg, #1b2e4d, #304674); }
#team_html .member-info { padding: 20px; }
#team_html .member-info h3 { font-size: 1.05rem; color: var(--primary); margin-bottom: 4px; }
#team_html .role-tag { display: inline-block; background: var(--surface); color: var(--accent); font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin-bottom: 10px; }
#team_html .member-overlay { position: absolute; inset: 0; background: rgba(27,46,77,0.94); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; opacity: 0; transition: opacity var(--transition); }
#team_html .member-card:hover .member-overlay { opacity: 1; }
#team_html .member-name-bar { color: var(--accent-light); font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
#team_html .ov-role    { color: rgba(255,255,255,0.6); font-size: 0.78rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
#team_html .ov-summary { color: rgba(255,255,255,0.75); font-size: 0.82rem; line-height: 1.65; margin-bottom: 14px; }
#team_html .ov-pages a { color: var(--accent-light); font-size: 0.78rem; font-weight: 700; display: inline-block; margin: 3px 5px; }
#team_html .hover-hint { font-size: 0.72rem; color: var(--text-light); text-align: center; margin-top: 8px; }
#team_html .why-section { background: var(--surface); padding: 64px 28px; }
#team_html .quotes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
#team_html .quote-card  { background: var(--white); border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 28px 32px; }
#team_html .quote-mark  { font-size: 4rem; color: var(--accent); line-height: 0.5; margin-bottom: 12px; font-family: Georgia, serif; }
#team_html .quote-item  { color: var(--text-mid); font-size: 0.9rem; line-height: 1.75; font-style: italic; margin-bottom: 16px; }
#team_html .quote-author { font-size: 0.8rem; font-weight: 700; color: var(--primary); }

/* ============================================================
   CONTENT ST1 — (no body id)
   ============================================================ */
.content-wrap {
  display: flex;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 28px;
  align-items: flex-start;
}

.side-nav {
  width: 220px;
  flex-shrink: 0;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 80px;
}
.side-nav-label, .sidebar-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-light); margin-bottom: 12px; }
.side-nav a { display: block; padding: 8px 10px; color: var(--text-mid); font-size: 0.85rem; border-radius: var(--radius-sm); transition: all var(--transition); margin-bottom: 4px; }
.side-nav a:hover, .side-nav a.active { background: var(--accent); color: var(--white); }

.article { flex: 1; }
.article h2 { font-size: 1.4rem; color: var(--primary); margin: 28px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--surface-dark); }

.stat-row { display: flex; gap: 16px; margin: 24px 0; flex-wrap: wrap; }
.stat-box { flex: 1; min-width: 140px; background: var(--surface); border-radius: var(--radius-sm); padding: 18px 20px; text-align: center; border-top: 3px solid var(--accent); }
.stat-box .num { display: block; font-size: 1.8rem; font-weight: 900; color: var(--primary); }
.stat-box .lbl { font-size: 0.78rem; color: var(--text-mid); }

.img-pair { display: flex; gap: 18px; margin: 24px 0; }
.img-pair figure { flex: 1; margin: 0; }
.img-pair img, .art-img { border-radius: var(--radius-sm); box-shadow: var(--card-shadow); width: 100%; }
.pull-quote { border-left: 4px solid var(--accent); background: var(--surface); padding: 18px 24px; border-radius: var(--radius-sm); color: var(--text-mid); font-style: italic; font-size: 1.05rem; margin: 28px 0; }
.go-top { display: inline-block; margin-top: 32px; color: var(--accent); font-weight: 700; font-size: 0.88rem; }
.go-top:hover { color: var(--primary); }

/* ============================================================
   CONTENT ST2 — #content_ST2_html
   ============================================================ */
#content_ST2_html .content-hero { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); padding: 60px 40px; }
#content_ST2_html .content-hero h1 { color: var(--white); font-size: 2.2rem; margin-bottom: 12px; }
#content_ST2_html .hero-byline   { color: rgba(255,255,255,0.55); font-size: 0.82rem; }
#content_ST2_html .hero-intro    { color: rgba(255,255,255,0.7); max-width: 540px; margin-top: 14px; }
#content_ST2_html .breadcrumb    { padding: 12px 28px; font-size: 0.8rem; color: var(--text-light); border-bottom: 1px solid var(--surface-dark); max-width: 1200px; margin: 0 auto; }
#content_ST2_html .content-nav   { background: var(--surface); border-bottom: 1px solid var(--surface-dark); padding: 14px 28px; display: flex; gap: 12px; flex-wrap: wrap; }
#content_ST2_html .content-nav a { color: var(--primary); font-weight: 700; font-size: 0.82rem; padding: 6px 14px; border-radius: 20px; border: 1px solid var(--surface-dark); transition: all var(--transition); }
#content_ST2_html .content-nav a:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }
#content_ST2_html .content-section { max-width: 1200px; margin: 0 auto; padding: 48px 28px; border-bottom: 1px solid var(--surface-dark); }
#content_ST2_html .content-section h2 { font-size: 1.4rem; color: var(--primary); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--surface-dark); }
#content_ST2_html .big-stat .num { font-size: 3.5rem; font-weight: 900; color: var(--accent-light); display: block; }
#content_ST2_html .stat-callout  { background: var(--surface); border-left: 4px solid var(--accent); padding: 16px 20px; border-radius: var(--radius-sm); margin: 20px 0; font-style: italic; color: var(--text-mid); }
#content_ST2_html .disease-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
#content_ST2_html .disease-table th { background: var(--primary); color: var(--white); padding: 11px 14px; text-align: left; font-size: 0.8rem; text-transform: uppercase; }
#content_ST2_html .disease-table td { padding: 10px 14px; border-bottom: 1px solid var(--surface-dark); color: var(--text-mid); font-size: 0.88rem; }
#content_ST2_html .disease-table tr:hover td { background: var(--surface); }
#content_ST2_html .content-img  { width: 100%; border-radius: var(--radius-sm); box-shadow: var(--card-shadow); }
#content_ST2_html .img-caption  { font-size: 0.78rem; color: var(--text-light); margin-top: 6px; font-style: italic; }

/* ============================================================
   CONTENT ST3 — #content_ST3_html
   ============================================================ */
#content_ST3_html .content-hero { position: relative; height: 380px; overflow: hidden; display: flex; align-items: flex-end; }
#content_ST3_html .content-herobg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.35; }
#content_ST3_html .content-herocolor { position: absolute; inset: 0; background: linear-gradient(135deg, var(--primary-dark) 0%, transparent 100%); }
#content_ST3_html .content-hero-text { position: relative; z-index: 2; padding: 48px 40px; }
#content_ST3_html .content-hero-text h1 { color: var(--white); font-size: 2.2rem; margin-bottom: 10px; }
#content_ST3_html .hero-tag { display: inline-block; background: rgba(91,200,240,0.2); color: var(--accent-light); font-size: 0.72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 5px 14px; border-radius: 20px; margin-bottom: 14px; }
#content_ST3_html .page-content { display: flex; gap: 32px; max-width: 1200px; margin: 0 auto; padding: 48px 28px; align-items: flex-start; }
#content_ST3_html .content-section { flex: 1; }
#content_ST3_html .content-section h2 { font-size: 1.4rem; color: var(--primary); margin: 24px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--surface-dark); }
#content_ST3_html .fact-box { background: var(--surface); border-left: 4px solid var(--accent); padding: 16px 20px; border-radius: var(--radius-sm); margin: 20px 0; }
#content_ST3_html .fact-box .fig { font-size: 2rem; font-weight: 900; color: var(--primary); display: block; }
#content_ST3_html .fact-box .desc { font-size: 0.82rem; color: var(--text-mid); }
#content_ST3_html .stat-block { display: flex; gap: 16px; margin: 20px 0; flex-wrap: wrap; }
#content_ST3_html .stat-row   { flex: 1; min-width: 120px; background: var(--surface); border-radius: var(--radius-sm); padding: 16px; text-align: center; border-top: 3px solid var(--accent); }
#content_ST3_html .action-list { list-style: none; padding: 0; }
#content_ST3_html .action-list li { padding: 8px 0; border-bottom: 1px solid var(--surface-dark); color: var(--text-mid); font-size: 0.88rem; }
#content_ST3_html .img-caption { font-size: 0.78rem; color: var(--text-light); font-style: italic; margin-top: 6px; }

/* ============================================================
   PAGE EDITORS — shared layout
   ============================================================ */
.editor-layout, .pe-layout {
  display: flex;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 28px;
  align-items: flex-start;
}
.editor-main, .pe-main { flex: 1; }
.editor-sidebar, .pe-sidebar {
  width: 230px;
  flex-shrink: 0;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 80px;
  margin-left: 28px;
}
.editor-header, .pe-header { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); padding: 52px 40px; }
.editor-header h1, .pe-header h1 { color: var(--white); font-size: 2rem; margin-bottom: 10px; }
.editor-header p,  .pe-header p  { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.editor-footer, .pe-footer { background: var(--primary-dark); padding: 28px 40px; text-align: center; color: rgba(255,255,255,0.35); font-size: 0.78rem; }
.editor-body { max-width: 1200px; margin: 0 auto; padding: 40px 28px; }
.editor-section, .pe-section { background: var(--white); border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 28px 32px; margin-bottom: 22px; }
.editor-section h2, .pe-section h2 { font-size: 1.2rem; color: var(--primary); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--surface-dark); }

.meeting-table, .meetings-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin-top: 14px; }
.meeting-table th, .meetings-table th { background: var(--primary); color: var(--white); padding: 10px 12px; text-align: left; font-size: 0.77rem; text-transform: uppercase; letter-spacing: 0.5px; }
.meeting-table td, .meetings-table td { padding: 9px 12px; border-bottom: 1px solid var(--surface-dark); color: var(--text-mid); vertical-align: top; }
.meeting-table tr:hover td, .meetings-table tr:hover td { background: var(--surface); }

.page-link { display: inline-block; padding: 8px 18px; background: var(--accent); color: var(--white); font-weight: 700; font-size: 0.82rem; border-radius: 4px; margin-right: 8px; margin-bottom: 8px; transition: background var(--transition); }
.page-link:hover { background: var(--primary); color: var(--white); }
.page-link.outline { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.page-link.outline:hover { background: var(--accent); color: var(--white); }
.page-link-badge { display: inline-block; background: var(--surface-dark); color: var(--primary); font-size: 0.78rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; margin-right: 6px; }

.role-badge, .tag { display: inline-block; background: var(--surface); color: var(--accent); font-size: 0.72rem; font-weight: 700; padding: 4px 11px; border-radius: 20px; margin-right: 6px; }
.callout { background: var(--surface); border-left: 4px solid var(--accent); padding: 16px 20px; border-radius: var(--radius-sm); color: var(--text-mid); font-size: 0.9rem; margin: 20px 0; }
.ref-list { list-style: none; padding: 0; }
.ref-list li { padding: 6px 0; border-bottom: 1px solid var(--surface-dark); font-size: 0.85rem; color: var(--text-mid); }
.ref-list li:last-child { border-bottom: none; }
.highlight-box { background: var(--surface); border-radius: var(--radius-sm); padding: 16px 20px; border-top: 3px solid var(--accent); margin: 16px 0; }
.contents-box  { background: var(--surface); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 24px; }
.contents-box ul { list-style: none; padding: 0; }
.contents-box li { padding: 6px 0; border-bottom: 1px solid var(--surface-dark); }
.contents-box a  { color: var(--accent); font-weight: 600; font-size: 0.88rem; }
.back-top { text-align: center; margin: 28px 0; }
.back-top a { color: var(--accent); font-weight: 700; font-size: 0.88rem; }

/* ST2 Page Editor specific */
#pageEditor_ST2_html .loader-track { height: 4px; background: var(--surface-dark); border-radius: 2px; overflow: hidden; margin-bottom: 12px; }
#pageEditor_ST2_html .splash-bg    { background: var(--primary-dark); }
#pageEditor_ST2_html .btn-skip     { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.7); padding: 8px 20px; border-radius: 20px; font-size: 0.8rem; cursor: pointer; }
#pageEditor_ST2_html .members-list { list-style: none; padding: 0; }
#pageEditor_ST2_html .members-list li { padding: 8px 0; border-bottom: 1px solid var(--surface-dark); color: var(--text-mid); font-size: 0.88rem; }

/* ST3 Page Editor member card */
#pageEditor_ST3_html .member-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--card-shadow); overflow: hidden; margin-bottom: 16px; }
#pageEditor_ST3_html .member-name-bar { background: var(--primary); color: var(--white); padding: 12px 18px; font-weight: 700; font-size: 1rem; }
#pageEditor_ST3_html .member-overlay  { background: var(--surface); padding: 18px; }

/* ============================================================
   VALIDATION PAGES — shared + ST1/ST2/ST3
   ============================================================ */
.val-layout { display: flex; gap: 0; max-width: 1200px; margin: 0 auto; padding: 40px 28px; align-items: flex-start; }
.val-main   { flex: 1; }
.val-sidebar { width: 220px; flex-shrink: 0; background: var(--surface); border-radius: var(--radius); padding: 20px; position: sticky; top: 80px; margin-left: 28px; }
.val-sidebar a { display: block; padding: 7px 0; color: var(--text-mid); font-size: 0.85rem; border-bottom: 1px solid var(--surface-dark); transition: color var(--transition); }
.val-sidebar a:hover { color: var(--accent); }
.val-header { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); padding: 52px 40px; }
.val-header h1 { color: var(--white); font-size: 2rem; margin-bottom: 10px; }
.val-header p  { color: rgba(255,255,255,0.6); }
.val-section  { background: var(--white); border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 28px 32px; margin-bottom: 22px; }
.val-section h2 { font-size: 1.2rem; color: var(--primary); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--surface-dark); }
.val-section h3 { font-size: 1rem; color: var(--primary); margin: 20px 0 10px; }

.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.8px; margin-bottom: 12px; }
.badge.pass, .pass-badge, .badge-pass { background: #27ae60; color: var(--white); }

.reflection-box { background: var(--surface); border-left: 3px solid var(--accent); padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.88rem; color: var(--text-mid); margin: 14px 0; }
.screenshot-box, .val-screenshot { border-radius: var(--radius-sm); border: 1px solid var(--surface-dark); margin-top: 12px; width: 100%; }
.check-list li  { padding: 6px 0; font-size: 0.85rem; color: var(--text-mid); border-bottom: 1px solid var(--surface-dark); }
.warning-note   { background: #fff9e6; border-left: 3px solid var(--accent-warm); padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.85rem; color: var(--text-mid); margin: 12px 0; }
.instruction    { background: var(--surface); padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.85rem; color: var(--text-mid); }
.section-nav    { width: 200px; flex-shrink: 0; position: sticky; top: 80px; }
.section-nav a  { display: block; padding: 7px 0; color: var(--text-mid); font-size: 0.85rem; border-bottom: 1px solid var(--surface-dark); }
.section-nav a:hover { color: var(--accent); }
.val-footer { background: var(--primary-dark); text-align: center; padding: 22px; color: rgba(255,255,255,0.3); font-size: 0.78rem; }
#validation_ST2_html .val-container { display: flex; gap: 28px; max-width: 1200px; margin: 0 auto; padding: 40px 28px; align-items: flex-start; }
#validation_ST3_html .val-body { max-width: 1000px; margin: 0 auto; padding: 40px 28px; }

/* ============================================================
   RESPONSIVE — ALL PAGES
   ============================================================ */
@media (max-width: 860px) {
  .hero-content   { padding: 80px 28px 60px; }
  .hero h1        { font-size: 1.8rem; }
  .stat-item      { width: 50%; }
  .tile           { width: 50%; height: 220px; }
  .thumb-grid     { grid-template-columns: repeat(2, 1fr); }
  #team_html .team-grid    { grid-template-columns: repeat(2, 1fr); }
  #team_html .quotes-grid  { grid-template-columns: 1fr; }
  #ais_html .action-grid   { grid-template-columns: repeat(2, 1fr); }
  .editor-layout, .pe-layout, .val-layout { flex-direction: column; }
  .editor-sidebar, .pe-sidebar, .val-sidebar { width: 100%; margin-left: 0; position: relative; top: 0; }
  .content-wrap, #content_ST3_html .page-content { flex-direction: column; }
  .side-nav { width: 100%; position: relative; top: 0; }
  #feedback_html .form-inner { padding: 24px 20px; }
}

@media (max-width: 560px) {
  .hero             { height: auto; min-height: 80vh; }
  .hero-content     { padding: 60px 20px 40px; }
  .hero h1          { font-size: 1.5rem; }
  .tile             { width: 100%; height: 200px; }
  .hero-ctas a      { float: none; display: block; margin-bottom: 10px; }
  .thumb-grid       { grid-template-columns: repeat(2, 1fr); }
  #team_html .team-grid    { grid-template-columns: 1fr; }
  #ais_html .action-grid   { grid-template-columns: 1fr; }
  .stat-row, .img-pair     { flex-direction: column; }
}
/* ============================================================
   PROFILE PAGE — #profile_html
   ============================================================ */

#profile_html main.container {
  padding-top: 48px;
  padding-bottom: 60px;
  max-width: 780px;
}

/* Outer wrapper */
#profile_html .profile-container {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 40px 44px;
}

/* Setup view (initial state) */
#profile_html #setupView .section-title {
  margin-bottom: 30px;
}

#profile_html #setupView .section-title h2 {
  font-size: 1.6rem;
  color: var(--primary);
}

#profile_html #setupView .section-title p {
  color: var(--text-mid);
  font-size: 0.95rem;
}

/* Setup / action button */
#profile_html .setup-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 32px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

#profile_html .setup-btn:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,159,212,0.3);
}

/* Hidden class for JS toggling */
#profile_html .hidden { display: none; }

/* Progress bar */
#profile_html .progress-container {
  background: var(--surface-dark);
  border-radius: 20px;
  height: 10px;
  overflow: hidden;
  margin-bottom: 18px;
}

#profile_html .progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 20px;
  transition: width 0.4s ease;
}

#profile_html #profileView h3 {
  font-size: 0.95rem;
  color: var(--text-mid);
  font-weight: 600;
  margin-bottom: 20px;
}

#profile_html #profileView h3 span {
  color: var(--accent);
  font-size: 1rem;
}

/* Profile card (result summary) */
#profile_html .profile-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 32px;
  border-left: 5px solid var(--accent);
  margin-top: 10px;
}

#profile_html .profile-card h2 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 18px;
}

/* Each profile row */
#profile_html .profile-item {
  padding: 9px 0;
  border-bottom: 1px solid var(--surface-dark);
  font-size: 0.9rem;
  color: var(--text-mid);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#profile_html .profile-item:last-of-type { border-bottom: none; }

#profile_html .profile-item strong {
  color: var(--primary);
  min-width: 120px;
}

/* Footer */
#profile_html footer {
  padding: 28px 40px;
}

#profile_html .footer-bottom {
  padding: 16px 0;
}

/* Profile responsive */
@media (max-width: 768px) {
  #profile_html main.container { padding: 20px 16px 40px; }
  #profile_html .profile-container { padding: 24px 20px; }
  #profile_html .setup-btn { width: 100%; font-size: 0.9rem; text-align: center; }
  #profile_html .profile-card { padding: 20px 16px; }
  #profile_html .profile-item { flex-direction: column; gap: 2px; }
  #profile_html .profile-item strong { min-width: unset; }
}

