/* --- Modern clean gallery style --- */
:root {
  --bg: #ffffff;
  --text: #000000;
  --muted: #555555;
  --accent: #000000;
  --radius: 14px;
  --shadow: 0 2px 6px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.5 "Aptos", "Segoe UI", Inter, Arial, sans-serif;
}

/* Layout */
.container { max-width: 1100px; margin: 0 auto; padding: 32px; }

/* Header */
.site-header { border-bottom: 1px solid #eee; padding: 20px 0; }
.site-title { margin: 0 0 6px; font-size: 2rem; font-weight: 700; }
.course { margin: 0; color: var(--muted); font-weight: 500; }
.tagline { margin: 6px 0 0; color: var(--muted); }

/* Sections */
.section { margin: 40px 0; }
.section-title { font-size: 1.4rem; margin: 0 0 16px; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.tile { display: block; text-decoration: none; color: inherit; }
.tile figure {
  margin: 0; border-radius: var(--radius);
  border: 1px solid #ddd; overflow: hidden;
  box-shadow: var(--shadow); background: #fff;
  transition: transform .25s ease;
}
.tile img {
  width: 100%; height: 240px; object-fit: cover; display: block;
}
.tile:hover figure { transform: scale(1.02); }
.tile figcaption { padding: 12px; font-size: 0.9rem; color: var(--muted); }
.tile figcaption strong { color: var(--text); font-weight: 600; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .2s ease;
}
.btn:hover { background: #333; }

/* Forms */
.card {
  background: #fafafa; border: 1px solid #ddd;
  padding: 20px; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
label { display: block; margin: 12px 0; font-weight: 500; }
input[type="text"], input[type="password"], textarea, select {
  width: 100%; padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid #ccc;
  font-size: 1rem;
}
textarea { resize: vertical; }

/* Footer */
.site-footer { border-top: 1px solid #eee; padding: 20px 0; }
.site-footer p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Flash messages */
.flash { padding:12px 16px; border-radius: var(--radius); margin: 16px 0; }
.flash.ok { background: #e7f8ee; color: #146c2e; }
.flash.error { background: #fde8e8; color: #a33; }
