/* styles.css */
:root {
  --primary: #0f4c81;     /* deep blue */
  --accent: #0fb;         /* teal accent */
  --text: #1a1a1a;
  --muted: #6b7280;
  --bg: #ffffff;
  --card: #f8fafc;
  --shadow: 0 10px 24px rgba(0,0,0,.08);
  --radius: 12px;
}

* { box-sizing: border-box }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: Inter, system-ui, sans-serif; margin: 0 0 12px; }
p { margin: 0 0 16px; color: var(--muted); }

.site-header {
  position: sticky; top: 0; background: #fff; border-bottom: 1px solid #e5e7eb; z-index: 10;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font-weight: 700; }
.logo img { width: 40px; height: 40px; object-fit: contain; }

.nav-toggle { display: none; background: none; border: none; font-size: 24px; }
.nav-list { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.nav-list a { text-decoration: none; color: var(--text); font-weight: 600; padding: 8px 10px; border-radius: 8px; }
.nav-list a:hover { background: #f0f4f8; }

.hero { background: #f8fafc; }
.carousel { position: relative; overflow: hidden; }
.slides { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; }
.slide { position: relative; min-height: 420px; display: none; }
.slide.current { display: block; }
.slide img { width: 100%; height: 420px; object-fit: cover; filter: saturate(1.05); }
.caption { position: absolute; inset: auto 20px 20px 20px; background: rgba(255,255,255,.9); padding: 16px; border-radius: var(--radius); box-shadow: var(--shadow); }
.caption h1, .caption h2 { color: var(--primary); }

.arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: #fff; border: 1px solid #e5e7eb; border-radius: 50%;
  width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer;
}
.arrow:hover { background: #f0f4f8; }
.prev { left: 16px; }
.next { right: 16px; }

.dots { display: flex; gap: 8px; position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); }
.dots button {
  width: 10px; height: 10px; border-radius: 50%; border: none; background: #d1d5db;
}
.dots button[aria-selected="true"] { background: var(--primary); }

.highlights { padding: 40px 0; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); padding: 16px; border-radius: var(--radius);
  box-shadow: var(--shadow); text-decoration: none; color: var(--text);
}
.card img { width: 100%; border-radius: 10px; margin-bottom: 10px; }

.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center; padding: 40px 0; }
.split img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.split.alt { grid-template-columns: .8fr 1.2fr; }

.quick { padding: 20px 0 40px; }
.quick .grid { grid-template-columns: repeat(5, 1fr); }
.quick .card { text-align: center; font-weight: 700; padding: 20px; }

.btn {
  display: inline-block; padding: 10px 14px; border-radius: 10px;
  border: 1px solid #e5e7eb; text-decoration: none; color: var(--text);
}
.btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn:hover { filter: brightness(1.05); }

.site-footer { background: #0b1a2a; color: #cbd5e1; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 30px 0; }
.site-footer a { color: #cbd5e1; }
.legal { border-top: 1px solid #1f2937; padding: 14px 0 30px; text-align: center; }

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .quick .grid { grid-template-columns: 1fr 1fr 1fr; }
  .nav-toggle { display: inline-block; }
  .nav-list { display: none; position: absolute; right: 20px; top: 60px; background: #fff; padding: 12px; border-radius: 12px; box-shadow: var(--shadow); }
  .nav-list.open { display: grid; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .quick .grid { grid-template-columns: 1fr 1fr; }
  .slide img { height: 320px; }
}
#chairman-profile img {
  width: 100%;
  max-width: 280px;
  border-radius: 50%; /* circular photo */
  box-shadow: var(--shadow);
}
#chairman-profile h2 {
  color: var(--primary);
}

.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f4c81, #1e3a8a);
}

.login-container {
  width: 100%;
  max-width: 450px;
  padding: 20px;
}

.login-box {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
}

.login-logo {
  width: 80px;
  margin-bottom: 16px;
}

.login-box h2 {
  margin-bottom: 20px;
  color: var(--primary);
}

.login-box form {
  text-align: left;
}

.login-box label {
  display: block;
  margin: 8px 0 4px;
}

.login-box input {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 14px;
}

.signup-link {
  margin-top: 12px;
  font-size: 14px;
}
.signup-link a {
  color: var(--primary);
  text-decoration: none;
}
.signup-link a:hover {
  text-decoration: underline;
}

.signup-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #1e3a8a, #0f4c81);
}

.signup-container {
  width: 100%;
  max-width: 500px;
  padding: 20px;
}

.signup-box {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
}

.signup-logo {
  width: 80px;
  margin-bottom: 16px;
}

.signup-box h2 {
  margin-bottom: 20px;
  color: var(--primary);
}

.signup-box form {
  text-align: left;
}

.signup-box label {
  display: block;
  margin: 8px 0 4px;
}

.signup-box input,
.signup-box select {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.login-link {
  margin-top: 12px;
  font-size: 14px;
}
.login-link a {
  color: var(--primary);
  text-decoration: none;
}
.login-link a:hover {
  text-decoration: underline;
}

.dashboard-page {
  background: #f9fafb;
  font-family: "Source Sans 3", sans-serif;
}

.dashboard-header {
  background: var(--primary);
  color: #fff;
  padding: 16px 0;
}

.dashboard-header h1 {
  margin: 0;
}

.dashboard-nav {
  margin-top: 8px;
}
.dashboard-nav a {
  color: #fff;
  margin-right: 16px;
  text-decoration: none;
  font-weight: 600;
}
.dashboard-nav a:hover {
  text-decoration: underline;
}

.dashboard-main {
  padding: 30px 0;
}

.quick-links .grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.quick-links .card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}

.announcements ul {
  list-style: none;
  padding: 0;
}
.announcements li {
  background: #fff;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.dashboard-footer {
  background: #0b1a2a;
  color: #cbd5e1;
  text-align: center;
  padding: 16px 0;
}

.library-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.library-search {
  display: flex;
  gap: 10px;
}

.library-search input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.library-main {
  padding: 30px 0;
}

.categories .grid,
.featured .grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.resource-list table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.resource-list th,
.resource-list td {
  border: 1px solid #e5e7eb;
  padding: 12px;
  text-align: left;
}

.resource-list th {
  background: #f3f4f6;
}