/* /inika/assets/css/base.css */

:root {
  --brand-dark: #1f2a44;
  --brand-light: #e9eef6;
  --accent: #2a6fd6;
  --text-main: #222;
  --text-muted: #555;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: #f7f9fc;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---------- Header ---------- */

.site-header {
  background: linear-gradient(90deg, var(--brand-dark), #3b4f7a);
  color: white;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.site-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

.site-subtitle {
  display: block;
  font-size: 0.85rem;
  color: #cfd7ef;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  padding: 0;
  margin: 0;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a:focus {
  text-decoration: underline;
}

/* ---------- Main ---------- */

main {
  padding: 2rem 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--brand-dark);
  color: #d6dbea;
  font-size: 0.9rem;
}

.site-footer a {
  color: #d6dbea;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-inner {
  padding: 1.5rem 0;
  text-align: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .main-nav ul {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}
/* ---------- Home Page ---------- */

.page-intro {
  margin-bottom: 2.5rem;
}
.page {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.page-intro .lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 720px;
}

/* Grid layout */
.home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Cards */
.card {
  background: white;
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.card h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.card h2 span {
  font-weight: normal;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Lists */
.card ul {
  padding-left: 1.2rem;
}

.card li {
  margin-bottom: 0.4rem;
}

/* Desktop enhancement */
@media (min-width: 900px) {
  .home-grid {
    grid-template-columns: 1.2fr 1.3fr 1fr;
  }
}
/* ---------- Teaching Page ---------- */

.teaching-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 900px) {
  .teaching-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .teaching-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* ---------- Course Pages ---------- */

.course section {
  margin-bottom: 2.5rem;
}

.course h2 {
  margin-top: 2.5rem;
}

.course ul {
  padding-left: 1.2rem;
}

.course li {
  margin-bottom: 0.4rem;
}

.course-nav {
  margin-top: 3rem;
}
/* ===============================
   Two-column content layout
   =============================== */

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Main content */
.content-main {
  min-width: 0;
}

/* Sidebar */
.content-side {
  min-width: 0;
}

/* Desktop enhancement */
@media (min-width: 900px) {
  .content-grid {
    grid-template-columns: 2.5fr 1fr;
    align-items: start;
  }
}


/* Card styling for side sections */
.content-side .card {
  background: #f6f8fb;
  padding: 1.25rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.content-side .card h3 {
  margin-top: 0;
}

/* ===============================
   Section separators
   =============================== */

.content-main section {
  padding-bottom: 1.75rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e4e8ee;
}

.content-main section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}


/* ===============================
   Last updated badge
   =============================== */

.updated-badge {
  display: inline-block;
  font-size: 0.85rem;
  color: #555;
  background: #eef2f7;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-left: 0.75rem;
  vertical-align: middle;
}

