/* Reset & base styles */
* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, sans-serif;
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
  background: #f9f9f9;
  color: #222;
  line-height: 1.6;
}

/* Headings */
h1, h2, h3 {
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Links */
a {
  color: #3366cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
}

/* Navigation */
nav {
  text-align: center;
  margin-bottom: 2rem;
}

nav a {
  margin: 0 1rem;
}
.site-name {
  font-weight: 600;
}
.no-nav-header {
  text-align: left;
  margin: 1.5rem 0 2rem;
  font-weight: 700;
  font-size: 2rem;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 4rem;
  color: #777;
  font-size: 0.9rem;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.project-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 1px 5px rgb(0 0 0 / 0.1);
  padding: 1rem;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.project-card:hover {
  box-shadow: 0 5px 15px rgb(0 0 0 / 0.15);
}

.project-card a {
  color: inherit;
  text-decoration: none;
}

.project-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.project-card h3 {
  margin: 0.5rem 0;
  font-size: 1.2rem;
}

/* Make videos behave like images */
video {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* optional */
    margin: 1rem 0;     /* optional spacing */
}
.project-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* left wide, right narrow */
    gap: 2rem;
    margin-top: 2rem;
}

.project-text {
    line-height: 1.6;
}

.project-media img,
.project-media video {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.project-header {
    margin-bottom: 1.5rem;
}

.project-footer {
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* Tables (Courses) */
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 5px rgb(0 0 0 / 0.08);
  margin: 1.5rem 0 2.5rem;
}

thead th {
  text-align: left;
  font-size: 0.95rem;
  background: #f1f3f6;
  color: #111;
  padding: 0.8rem 1rem;
}

tbody td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #e7e7e7;
  vertical-align: top;
}

tbody tr:nth-child(odd) {
  background: #fafafa;
}

tbody tr:hover {
  background: #f4f7ff;
}

@media (max-width: 720px) {
  table {
    font-size: 0.95rem;
    display: block;
    overflow-x: auto;
  }
}
