﻿:root {
  --bg: #eff4ff;
  --bg2: #dbe7ff;
  --surface: rgba(255, 255, 255, 0.9);
  --ink: #102245;
  --muted: #4f638c;
  --border: rgba(16, 34, 69, 0.12);
  --primary: #0f5fcc;
  --primary2: #0a478f;
  --accent: #00a8a8;
  --radius: 18px;
  --shadow: 0 18px 32px rgba(16, 34, 69, 0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  color: var(--ink);
  min-height: 100vh;
  background:
    radial-gradient(circle at 90% 12%, rgba(0, 168, 168, 0.14), transparent 26%),
    radial-gradient(circle at 10% 0, rgba(15, 95, 204, 0.16), transparent 28%),
    linear-gradient(160deg, #f9fbff 0%, var(--bg) 45%, var(--bg2) 100%);
  display: flex;
  flex-direction: column;
  padding-top: 76px;
}

.container {
  width: min(1160px, calc(100vw - 2rem));
  margin-inline: auto;
}

.hidden { display: none !important; }

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  background: linear-gradient(110deg, rgba(8, 22, 52, 0.95), rgba(12, 46, 102, 0.92));
  border-bottom: 1px solid rgba(147, 197, 253, 0.24);
  backdrop-filter: blur(8px);
}

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: #fff;
  text-decoration: none;
  font-family: 'Sora', 'Trebuchet MS', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.header .brand img { width: auto; height: 2rem; object-fit: contain; }
.footer .brand img { width: auto; height: 2.5rem; object-fit: contain; }
.brand span { font-size: 1.3rem; }
.brand span span { color: #63c9ff; }

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav a {
  color: #dbe9ff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.5rem 0.72rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.nav a:hover,
.nav a.active {
  color: #fff;
  background: rgba(96, 165, 250, 0.16);
  border-color: rgba(147, 197, 253, 0.24);
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(147, 197, 253, 0.3);
  border-radius: 12px;
  background: rgba(96, 165, 250, 0.16);
  color: #fff;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 0.5rem 1rem 0.8rem 1rem;
}
.mobile-nav.open { display: flex; }

main {
  width: 100%;
  flex: 1;
  padding-bottom: 2rem;
}

.hero {
  margin-top: 1.1rem;
  border-radius: 24px;
  padding: clamp(1.6rem, 5vw, 3.2rem);
  background:
    radial-gradient(circle at 85% 16%, rgba(0, 168, 168, 0.35), transparent 30%),
    linear-gradient(130deg, #081a38 0%, #0f5fcc 72%, #17b0b0 100%);
  color: #f6fbff;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.2rem;
  box-shadow: 0 24px 40px rgba(8, 24, 56, 0.25);
}

.hero h1 {
  margin: 0;
  font-family: 'Sora', 'Trebuchet MS', sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.07;
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
}
.hero h1 span { color: #7dd8ff; }
.hero p { line-height: 1.65; color: #e2efff; margin: 1rem 0 1.4rem; }

.hero-side {
  border: 1px solid rgba(186, 224, 255, 0.3);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  padding: 0.95rem;
}
.hero-side p { margin: 0; color: #eaf3ff; font-size: 0.92rem; line-height: 1.45; }
.hero-side p + p { margin-top: 0.55rem; padding-top: 0.55rem; border-top: 1px dashed rgba(234, 243, 255, 0.35); }

.actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.72rem 1rem;
  font: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s ease;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #2b83ef);
  box-shadow: 0 10px 20px rgba(15, 95, 204, 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--primary2), #1f6dcc);
}
.btn-soft {
  color: #0c4d9e;
  background: rgba(15, 95, 204, 0.1);
  border-color: rgba(15, 95, 204, 0.28);
}
.btn-soft:hover { transform: translateY(-2px); background: rgba(15, 95, 204, 0.18); }

.panel {
  margin-top: 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.15rem;
}

h1, h2 { font-family: 'Sora', 'Trebuchet MS', sans-serif; letter-spacing: -0.02em; margin: 0; }
.panel h1 { font-size: clamp(1.45rem, 2.7vw, 2rem); }
.panel h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.muted { color: var(--muted); margin: 0.4rem 0 0; }

.grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  border-radius: 15px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-shadow: 0 10px 16px rgba(16, 34, 69, 0.08);
  transition: all 0.22s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(15,95,204,0.35); box-shadow: 0 16px 24px rgba(16,34,69,0.13); }
.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(15,95,204,0.13), rgba(0,168,168,0.17));
  color: #0f4da6;
  font-size: 1.3rem;
}
.card .icon .icon-image {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.card .icon .icon-image-mask {
  width: 30px;
  height: 30px;
  display: inline-block;
  background-color: #0f4da6;
  -webkit-mask-image: var(--icon-url);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: var(--icon-url);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.45));
}
.card h3 { margin: 0; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); line-height: 1.55; flex: 1; }
.card .meta { font-size: 0.81rem; color: #5d729d; font-weight: 700; }

.chip-row { margin-top: 0.8rem; display: flex; gap: 0.45rem; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: #2f4b82;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.4rem 0.7rem;
}
.chip:hover, .chip.active { background: rgba(15,95,204,0.12); border-color: rgba(15,95,204,0.4); color: #0d4fa8; }

.tools { margin-top: 0.9rem; display: grid; grid-template-columns: 1fr auto; gap: 0.7rem; }
.search {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.72rem 0.9rem;
  font: inherit;
}
.search:focus { outline: none; border-color: rgba(15,95,204,0.5); box-shadow: 0 0 0 4px rgba(59,130,246,0.2); }
.pill {
  align-self: center;
  border: 1px solid rgba(15,95,204,0.25);
  background: rgba(15,95,204,0.08);
  color: #365590;
  border-radius: 999px;
  padding: 0.44rem 0.68rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.empty { margin-top: 1rem; border: 1px dashed rgba(16,34,69,0.25); border-radius: 12px; padding: 0.95rem; color: var(--muted); font-weight: 700; }

.topics-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.topics { margin-top: 1rem; display: grid; gap: 0.7rem; }
.topics a {
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: #123260;
  font-weight: 700;
  padding: 0.82rem 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topics a:hover { transform: translateX(4px); border-color: rgba(15,95,204,0.34); background: rgba(15,95,204,0.07); }

.topic-group-title {
  margin: 1rem 0 0.55rem 0;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #34558f;
}

.submodule-list {
  margin-top: 0.35rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
}

.submodule-card {
  border: 1px solid rgba(15, 95, 204, 0.28);
  border-radius: 14px;
  padding: 0.8rem;
  background: linear-gradient(145deg, rgba(15,95,204,0.08), rgba(0,168,168,0.08));
  box-shadow: 0 10px 18px rgba(16, 34, 69, 0.08);
}

.submodule-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.submodule-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #0e4fa8;
  background: rgba(255, 255, 255, 0.75);
}

.submodule-tag {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 800;
  color: #0f5fcc;
}

.submodule-card h4 {
  margin: 0.05rem 0 0 0;
  font-size: 0.98rem;
  color: #123260;
}

.submodule-card p {
  margin: 0.65rem 0 0.8rem 0;
  font-size: 0.88rem;
  color: #3e5888;
  line-height: 1.5;
}

.submodule-meta {
  margin: -0.25rem 0 0.7rem 0 !important;
  font-size: 0.78rem !important;
  font-weight: 700;
  color: #4a689d !important;
}

.btn-submodule {
  width: 100%;
  justify-content: center;
}

.rich p, .rich a { color: var(--muted); }
.rich h2 { margin-top: 1rem; font-size: 1.15rem; }

.breadcrumbs {
  margin-top: 1rem;
  width: fit-content;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  padding: 0.42rem 0.72rem;
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  flex-wrap: wrap;
  color: #536893;
  font-size: 0.84rem;
}
.breadcrumbs a { color: #224885; font-weight: 700; text-decoration: none; }

.footer {
  margin-top: auto;
  border-top: 1px solid rgba(147,197,253,0.25);
  background: linear-gradient(120deg, #081a38, #0b2d64);
  color: #d5e3fa;
}
.footer .container { text-align: center; padding: 1.2rem 0 1.35rem; }
.footer-brand { justify-content: center; }
.footer-nav { margin: 0.65rem 0; display: flex; gap: 0.65rem; justify-content: center; flex-wrap: wrap; }
.footer-nav a { color: #e0ebff; text-decoration: none; font-weight: 700; font-size: 0.84rem; }
.footer-nav a:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { padding-top: 70px; }
  .topbar { min-height: 70px; }
  .desktop-nav { display: none; }
  .menu-btn { display: inline-grid; place-items: center; }
  .grid { grid-template-columns: 1fr; }
  .panel { padding: 0.95rem; }
}
