/* ===========================
   Global Styles — CSUB Faculty
   =========================== */

   :root{
    /* CSUB brand colors */
    --csub-blue: #001A70;      /* Primary blue */
    --csub-gold: #FDB913;      /* Athletics gold (brighter accent) */
    --csub-gray: #707372;      /* Neutral */
    --gold-soft: #FFF3D6;      /* Soft gold tint for notices */
  
    --bg: #ffffff;
    --text: #1d2433;
  
    --radius: 12px;
    --shadow: 0 3px 10px rgba(0,0,0,.05);
  }
  
  *{ box-sizing: border-box; }
  html,body{ margin:0; padding:0; }
  body{
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  /* Links */
  a{
    color: var(--csub-blue);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color .2s ease, border-color .2s ease, background-color .2s ease;
  }
  a:hover{
    color: var(--csub-gold);
    border-color: rgba(0,0,0,0.08);
  }
  
  /* Containers & layout helpers */
  .container{ max-width: 960px; margin: 0 auto; padding: 1rem; }
  .card{
    background: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    transition: transform .15s ease, box-shadow .15s ease;
  }
  .card:hover{
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
  }
  .grid{ display:grid; gap:1rem; grid-template-columns: repeat(12, 1fr); }
  .grid > *{ grid-column: span 12; }
  
  /* Headings with gold accent underline */
  h1, h2, h3{ position: relative; margin-top: 1.25rem; }
  h1::after, h2::after, h3::after{
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--csub-gold);
    margin-top: .25rem;
    border-radius: 2px;
  }
  
  /* ===== Header / Nav ===== */
  .site-header{
    background: var(--csub-blue);
    color: white;
    position: sticky; top: 0; z-index: 10;
  }
  .header-bar{
    display:flex; align-items:center; justify-content:space-between;
    padding: .75rem 1rem;
  }
  .brand{
    display:flex; align-items:center; gap:.6rem;
    font-weight:700; letter-spacing:.3px;
    color:#fff;
  }
  .brand .dot{ /* kept if you reuse it elsewhere */
    width:.75rem; height:.75rem; background:var(--csub-gold); border-radius:999px;
  }
  .brand:hover svg{ stroke: var(--csub-gold); } /* gold hover for home icon */
  
  .menu-btn{
    display:none; background:none; border:0; color:white; font-size:1.35rem; line-height:1;
  }
  
  .nav{
    display:flex; gap:.5rem; align-items:center; flex-wrap:wrap;
  }
  .nav a{
    color: white;
    font-weight:600;
    padding:.5rem .75rem;
    border-radius:.5rem;
    border-bottom: none;
    transition: background-color .2s ease, color .2s ease, transform .06s ease;
  }
  .nav a:hover{ background: rgba(255,255,255,.18); }
  .nav a[aria-current="page"]{ background: rgba(255,255,255,.22); }
  
  /* ===== Hero ===== */
  .hero{
    color:white;
    padding:4rem 1rem;
    background: linear-gradient(160deg, var(--csub-blue) 0%, #0b2aa0 60%, var(--csub-gold) 100%);
  }
  .hero .inner{ max-width:960px; margin:0 auto; }
  .hero h1{ margin:0 0 .5rem 0; font-size: clamp(1.8rem, 3.2vw, 3rem); }
  .hero p{ margin:0; font-size:clamp(1rem, 1.5vw, 1.2rem); opacity:.95; }
  
  /* Notices */
  .notice{
    background: var(--gold-soft);
    border-left: 6px solid var(--csub-blue);
    padding: .75rem 1rem;
    border-radius: 8px;
  }
  
  /* Footer */
  .site-footer{
    background:#0e1e5c;
    color:#dbe1ff;
    padding:2rem 1rem;
    margin-top:2rem;
  }
  .site-footer a{ color:#dbe1ff; border-bottom-color: rgba(219,225,255,.35); }
  .site-footer a:hover{ color: var(--csub-gold); }
  
  /* Rules */
  hr{ border:0; border-top:1px solid #e6e8eb; margin:2rem 0; }
  
  /* ===== Responsive ===== */
  @media (min-width: 720px){
    .grid-4{ grid-column: span 4; }
    .grid-6{ grid-column: span 6; }
    .grid-8{ grid-column: span 8; }
  }
  
  @media (max-width: 719px){
    .nav{ display:none; width:100%; }
    .nav.open{
      display:flex; flex-direction:column; padding: .5rem 1rem 1rem;
    }
    .menu-btn{ display:block; }
  }
  
  .download-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--csub-gold);
  color: var(--csub-blue);
  font-weight: 600;
  padding: .5rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color .2s ease, transform .1s ease;
}
.download-btn:hover {
  background: #ffcc40;
  transform: translateY(-1px);
}
.download-btn svg {
  flex-shrink: 0;
}

/* A11y helper for honeypot label */
.sr-only {
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0;
}

/* Form styling */
form .form-row { margin-bottom: 1rem; }
form label { display:block; font-weight:600; margin-bottom:.35rem; }
form input, form textarea {
  width:100%; padding:.65rem .75rem; border:1px solid #e1e4ea; border-radius: var(--radius);
  font: inherit; outline: none; background:#fff; transition: border-color .15s, box-shadow .15s;
}
form input:focus, form textarea:focus {
  border-color: var(--csub-gold);
  box-shadow: 0 0 0 3px rgba(253,185,19,.18);
}
.form-actions { display:flex; align-items:center; gap:.75rem; }

/* Primary button */
.btn-primary {
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  background: var(--csub-gold); color: var(--csub-blue); font-weight:700;
  padding:.6rem 1.1rem; border:none; border-radius: var(--radius); cursor:pointer;
  transition: transform .1s ease, background-color .2s ease;
}
.btn-primary:hover { background:#ffcc40; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.form-status { min-height:1.25rem; font-size:.95rem; }

.table-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}

.table-cell {
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.table-cell:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

.table-cell h3 {
  margin-top: 0;
  color: var(--csub-blue);
  font-size: 1.2rem;
}

.table-cell p {
  margin: 0.5rem 0 0 0;
}
