
/* TPSSD Base Styles */
* { box-sizing: border-box; }
:root {
  --primary: #1b5e20; /* deep green */
  --secondary: #0d47a1; /* deep blue */
  --accent: #f9a825; /* gold */
  --dark: #111;
  --light: #fff;
  --muted: #f5f7fa;
}
html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, sans-serif;
  color: #1d2433;
  background: var(--muted);
}
a { color: var(--secondary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1100px, 92%); margin: 0 auto; }

/* Header & Nav */
header {
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  color: var(--light);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand {
  display: flex; align-items: center; gap: 12px;
}
.brand img { width: 42px; height: 42px; object-fit: contain; border-radius: 4px; background: #fff; }
.brand .title { font-size: 1.2rem; font-weight: 700; line-height: 1; }
.brand .tagline { font-size: .8rem; opacity: .9; }

nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-links { display: flex; gap: 14px; align-items: center; }
.nav-links a {
  color: #eef3ff; padding: 8px 10px; border-radius: 6px;
}
.nav-links a.active, .nav-links a:hover {
  background: rgba(255,255,255,.15);
}
#menuBtn { display: none; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); padding: 6px 10px; border-radius: 6px; }

/* Hero */
.hero {
  background: linear-gradient(180deg, #ffffff, #eef5ff);
  padding: 48px 0 36px;
  border-bottom: 1px solid #e6ecf3;
}
.hero h1 { font-size: clamp(1.6rem, 3.2vw, 2.6rem); margin: 0 0 8px; color: #0f1f3d; }
.hero p { margin: 0 0 18px; color: #2f3c56; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; border: none; cursor: pointer; font-weight: 700;
  padding: 10px 14px; border-radius: 8px;
}
.btn-primary { background: var(--secondary); color: #fff; }
.btn-accent { background: var(--accent); color: #111; }
.btn-outline { background: transparent; color: var(--secondary); border: 2px solid var(--secondary); }

/* Sections */
.section { padding: 30px 0; }
.section h2 { margin-top: 0; color: #0f1f3d; }
.card {
  background: #fff; border: 1px solid #e6ecf3; border-radius: 12px; padding: 16px;
  box-shadow: 0 2px 0 rgba(0,0,0,.02);
}
.grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(12, 1fr);
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  #menuBtn { display: inline-block; }
  .nav-links { display: none; flex-direction: column; align-items: stretch; padding: 10px 0; }
  .nav-links.show { display: flex; }
}

/* Footer */
footer {
  margin-top: 30px;
  background: #0f1f3d; color: #e7eefc;
  padding: 18px 0;
  font-size: .95rem;
}
footer a { color: #fff; }

/* Forms */
form .row { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
form .row-1 { grid-template-columns: 1fr; }
label { display: block; font-weight: 600; margin: 8px 0 6px; }
input, select, textarea {
  width: 100%; padding: 10px; border-radius: 8px; border: 1px solid #d9e3ef; background: #fff;
}
textarea { min-height: 120px; resize: vertical; }
.help { font-size: .85rem; color: #5b6a81; }

/* Team */
.team-card { display: flex; gap: 12px; align-items: center; }
.team-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #eee; }

/* Events Calendar (list + modal) */
.event { border-left: 4px solid var(--secondary); padding: 10px 12px; margin: 10px 0; border-radius: 8px; background: #fff; }
.event.past { opacity: .65; border-left-color: #aaa; }
.event .title { font-weight: 700; }
.event .meta { color: #445; font-size: .95rem; }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); display: none; align-items: center; justify-content: center; z-index: 100;
}
.modal {
  background: #fff; border-radius: 12px; padding: 16px; width: min(640px, 92%); box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.modal h3 { margin-top: 0; }
.modal .close { float: right; border: none; background: transparent; font-size: 1.4rem; cursor: pointer; }

/* Utility */
.muted { color: #56627a; }
.badge { background: var(--accent); color: #000; padding: 2px 8px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.center { text-align: center; }
