/* ScholarForge public theme (Professional / Academic / National) */

/* ---------- Tokens ---------- */
:root{
  --bg: #eef2f7;
  --panel: #ffffff;
  --panel-2: #f3f6fb;
  --text: #0f172a;
  --muted: rgba(15,23,42,.70);
  --accent-glow: rgba(11,31,59,.18);
  --border: rgba(15,23,42,.12);
  --shadow: 0 10px 22px rgba(15,23,42,.08);

  /* Brand colors */
  --accent: #0B1F3B;
  --accent-2: #08162A;
  --gold: #C7A84F;
  --gold-2: #B89335;

  --radius: 18px;
  --radius-pill: 999px;

  --maxw: 1080px;
}

/* ---------- Base ---------- */
*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  color:var(--text);
  background:var(--bg);
  font-family:"Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.45;
}

h1,h2,h3,.big,.site-title{
  font-family:"Plus Jakarta Sans","Inter",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  letter-spacing:-.015em;
}

a{color:inherit}
a:hover{opacity:.92}

/* Utility-ish */
.muted{color:var(--muted);}
.tiny{font-size:12px;color:var(--muted);}

/* ---------- Layout ---------- */
.wrap{
  max-width:var(--maxw);
  margin:0 auto;
  padding:18px 16px 28px;
}

/* A safe default container (some pages use .container inline styles) */
.container{width:100%;}

/* ---------- Header ---------- */
.top{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:18px 18px 14px;
  border-radius:var(--radius);
  border:1px solid var(--border);
  background:linear-gradient(180deg,#ffffff 0%, #f6f8fc 100%);
  box-shadow:var(--shadow);
}

.top > *{position:relative;z-index:1}
.top > div:first-child{flex:1;width:100%;}

@media (max-width:860px){
  .top{flex-direction:column}
}

/* Optional wrapper used in layout.php */
.top-main{width:100%;}

/* Back link */
.backlink{
  display:inline-block;
  margin-bottom:10px;
  padding:6px 10px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,.12);
  background:rgba(255,255,255,.6);
  font-weight:700;
}
/* Secondary Help pill */
.site-nav .nav-help {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 12px;
  text-decoration: none;
  margin-left: 6px;
  white-space: nowrap;

  border: 1px solid rgba(148,163,184,.35); /* slate */
  background: rgba(148,163,184,.10);
  font-weight: 700;
}

/* Hover */
.site-nav .nav-help:hover {
  background: rgba(148,163,184,.18);
}

/* Active state */
.site-nav .nav-help.active {
  background: rgba(148,163,184,.28);
  border-color: rgba(148,163,184,.55);
}

/* ---------- Brand ---------- */
.site-brand-wrap{
  position:relative;
  padding-bottom:10px;
  margin-bottom:6px;
}

.site-brand-wrap::after{
  content:"";
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  height:3px;
  background:linear-gradient(90deg,transparent,var(--gold),transparent);
  opacity:.95;
}

.site-brand{
  display:flex;
  align-items:center;
  gap:12px;
  width:fit-content;
  margin:0 auto;
  text-align:center;
}

.site-brand-text{
  display:flex;
  flex-direction:column;
  align-items:center;
}

.site-logo{
  width:150px;
  height:150px;
  object-fit:contain;
  border-radius:14px;
  background:var(--panel-2);
  border:1px solid var(--border);
  padding:8px;
}

.site-title{
  margin:0;
  font-size:50px;
  line-height:1.1;
  font-weight:800;
}

.site-subtitle{
  margin-top:4px;
  color:var(--muted);
  font-size:13px;
}

/* ---------- Mission ---------- */
.site-mission{
  margin-top:10px;
  max-width:860px;
  margin-inline:auto;
  background:rgba(199,168,79,.12);
  border:1px solid rgba(184,147,53,.25);
  border-left:5px solid var(--gold-2);
  border-radius:12px;
  padding:12px 16px;
}

.site-mission-inner{ text-align:center; }
.site-mission-title{ font-size:15px; line-height:1.55; }
.site-mission-sub{ margin-top:6px; font-size:13px; color:var(--muted); }

/* ---------- Nav ---------- */
.site-nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
  justify-content:center;
}

.site-nav a{
  padding:9px 16px;
  border-radius:var(--radius-pill);
  border:1px solid rgba(11,31,59,.22);
  text-decoration:none;
  color:rgba(11,31,59,.92);
  background:rgba(11,31,59,.06);
  font-weight:800;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.site-nav a:hover{
  background:rgba(11,31,59,.10);
  border-color:rgba(11,31,59,.32);
  transform:translateY(-1px);
}

.site-nav a.active{
  background:linear-gradient(180deg,rgba(227,191,99,.88),rgba(207,166,63,.88));
  border-color:var(--gold-2);
  color:#3a2a00;
  box-shadow:0 4px 10px rgba(207,166,63,.25);
}

/* ---------- Hero (gateway/home) ---------- */
.gateway-hero{ text-align:center; }
.hero-headline{
  font-size:38px;
  font-weight:800;
  letter-spacing:-0.3px;
  margin-top:10px;
  color:var(--accent);
}
.hero-sub{
  font-size:17px;
  font-weight:600;
  margin-top:12px;
}
.hero-ethos{
  font-size:14px;
  margin-top:14px;
  opacity:.75;
}
.gateway-hero .subnote{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
  font-size:12px;
  font-weight:800;
  opacity:.85;
}

/* ---------- Cards ---------- */
.card{
  position:relative;
  background:var(--panel);
  border:1px solid rgba(15,23,42,.18);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:
    0 10px 24px rgba(15,23,42,.10),
    0 2px 6px rgba(15,23,42,.06);
}

.card::before{
  content:'';
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.6);
}

.card.featured{border-color:rgba(31,143,74,.35);}

.big{font-size:18px;font-weight:800;margin-bottom:6px;}

/* ---------- Layout Helpers ---------- */
.two{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:14px;
}
@media (max-width:860px){.two{grid-template-columns:1fr}}

/* ---------- Buttons ---------- */
.btnrow{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px;}
.actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;align-items:center;}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px ;
  padding:10px 14px;
  border-radius:var(--radius-pill);
  border:1px solid rgba(15,23,42,.25);
  background:#ffffff;
  color:#0f172a;
  text-decoration:none;
  cursor:pointer;
  font-weight:650;
  transition: background .15s ease, transform .15s ease, border-color .15s ease;
}
/* HARD normalize: make <a.btn> and <button.btn> identical */
a.btn,
button.btn {
  height: 40px;              /* pick your standard */
  padding: 0 14px;           /* horizontal padding only */
  line-height: 40px;         /* vertical centering fallback */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Remove native button quirks */
button.btn {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(15,23,42,.25);
  background-color: #fff;
  font: inherit;
}

/* Prevent <a> baseline/underline quirks */
a.btn {
  text-decoration: none;
}
/* Normalize <button> vs <a> buttons */
button.btn {
  appearance: none;
  -webkit-appearance: none;
  background-clip: padding-box;
  line-height: 1;
  padding: 10px 14px; /* reassert padding */
}

/* Ensure consistent height everywhere */
.btn {
  min-height: 40px;
  box-sizing: border-box;
}

.btn:hover{
  background:rgba(11,31,59,.08);
  border-color:rgba(11,31,59,.35);
  transform:translateY(-1px);
}

.btn.primary{
  background:var(--accent);
  border-color:var(--accent-2);
  color:#ffffff;
  font-weight:800;
}

.btn.primary:hover{background:var(--accent-2);}

/* ---------- Tags ---------- */
.tag,.pill{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:var(--radius-pill);
  border:1px solid rgba(207,166,63,.70);
  background:rgba(227,191,99,.45);
  color:#3a2a00;
  font-size:12px;
  font-weight:650;
}

/* ---------- Inputs ---------- */
.input,textarea.input,select.input{
  width:100%;
  border-radius:14px;
  border:1px solid var(--border);
  padding:10px 12px;
  background:#ffffff;
  color:var(--text);
}

.input:focus,textarea.input:focus,select.input:focus{
  outline:none;
  border-color: rgba(11,31,59,.55);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

/* ---------- Tables ---------- */
.table{width:100%;border-collapse:collapse;}
.table td{padding:10px;border-top:1px solid var(--border);vertical-align:top;}
.table thead td{
  border-top:none;
  color:rgba(15,23,42,.72);
  font-size:12px;
  text-transform:uppercase;
}
.table tbody tr:hover{background:rgba(127,191,155,.08);}

/* ---------- Footer ---------- */
.site-footer{
  margin-top:18px;
  padding-top:14px;
  border-top:1px solid var(--border);
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  color:var(--muted);
}
.site-footer a{color:rgba(15,23,42,.70);text-decoration:none;}
.site-footer a:hover{text-decoration:underline;}

/* ---------- Home ---------- */
.home-hero{text-align:center;}

.home-hero-actions{
  margin-top:14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
}

.hero-split{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.home-grid{
  margin-top:14px;
  display:grid;
  grid-template-columns:320px 1fr;
  gap:14px;
}
@media (max-width:980px){.home-grid{grid-template-columns:1fr;}}

/* ---------- Lists ---------- */
.resource-links{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.resource-links a{font-weight:800;text-decoration:none;}
.resource-links a:hover{text-decoration:underline;}

.list{margin-top:10px;display:flex;flex-direction:column;gap:10px;}

.list-item{
  display:block;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.08);
  background:rgba(255,255,255,.55);
  text-decoration:none;
}

.list-item:hover{
  border-color:rgba(0,0,0,.14);
  background:rgba(255,255,255,.75);
}

.list-title{font-weight:900;margin-bottom:3px;}
/* ---------- Mobile Header Shrink ---------- */
@media (max-width: 640px){

  /* Reduce overall header padding */
  .top{
    padding:14px 14px 12px;
  }

  /* Brand block spacing */
  .site-brand-wrap{
    padding-bottom:6px;
    margin-bottom:4px;
  }

  /* Shrink logo */
  .site-logo{
    width:96px;
    height:96px;
    padding:6px;
  }

  /* Shrink title */
  .site-title{
    font-size:32px;
    line-height:1.15;
  }

  /* Subtitle tighter */
  .site-subtitle{
    font-size:12px;
  }

  /* Mission block tighter */
  .site-mission{
    font-size:14px;
    padding:10px 12px;
  }

  .site-mission-title{
    font-size:14px;
  }

  .site-mission-sub{
    font-size:12px;
  }

  /* Nav buttons slightly smaller + better wrap */
  .site-nav{
    gap:8px;
    margin-top:10px;
  }

  .site-nav a{
    padding:7px 12px;
    font-size:13px;
  }

  /* Admin / PLC pills stay readable but compact */
  .site-nav .nav-admin,
  .site-nav .nav-plc{
    padding:7px 12px;
    font-size:13px;
  }

  /* Back link less dominant */
  .backlink{
    font-size:13px;
    padding:5px 9px;
  }
}
/* ---------- Teacher Lounge: Relax vibe ---------- */
.card.lounge{
  border-color: rgba(14, 116, 144, .25);
  background:
    linear-gradient(180deg, rgba(224, 255, 249, .75) 0%, rgba(255, 247, 220, .65) 100%);
  overflow:hidden;
}

.card.lounge::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:72px;
  opacity:.55;
  pointer-events:none;
  background-repeat:repeat-x;
  background-size:420px 72px;
  /* simple wave SVG pattern */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='72' viewBox='0 0 420 72'%3E%3Cpath d='M0 36 C 60 12, 120 60, 180 36 C 240 12, 300 60, 360 36 C 390 24, 405 18, 420 20 L420 72 L0 72 Z' fill='%230ea5b7' fill-opacity='0.18'/%3E%3Cpath d='M0 44 C 60 20, 120 68, 180 44 C 240 20, 300 68, 360 44 C 390 32, 405 26, 420 28' stroke='%230ea5b7' stroke-opacity='0.22' stroke-width='3' fill='none'/%3E%3C/svg%3E");
}

.btn.lounge-btn{
  background: linear-gradient(180deg, rgba(14, 165, 183, 1), rgba(2, 132, 199, 1));
  border-color: rgba(2, 132, 199, 1);
  color:#ffffff;
  font-weight:900;
}

.btn.lounge-btn:hover{
  background: linear-gradient(180deg, rgba(2, 132, 199, 1), rgba(3, 105, 161, 1));
}

