/* viaiti-edu — professional e-learning public theme (vsite) */
:root {
  --ink: #1c2434;
  --ink-2: #46506b;
  --muted: #737e96;
  --line: #e3e7f0;
  --bg: #f7f8fc;
  --card: #ffffff;
  --accent: #4b5bd6;
  --accent-2: #6a78e8;
  --accent-soft: #eef0fd;
  --gold: #d9a441;
  --ok: #2f9e6e;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 36, 52, 0.08);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.65; }
img { max-width: 100%; }
a { color: var(--accent); }

/* header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 5vw; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none; }
.brand .mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; display: grid; place-items: center; font-size: 16px; }
.site-header nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-header nav a { color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: 14.5px; }
.site-header nav a:hover { color: var(--accent); }

/* hero */
.hero { background: linear-gradient(135deg, #232c54 0%, #4b5bd6 60%, #6a78e8 100%); color: #fff; padding: 90px 5vw 110px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -140px; top: -140px; width: 420px; height: 420px; border-radius: 50%; background: rgba(255,255,255,0.09); }
.hero::before { content: ""; position: absolute; right: 60px; bottom: -180px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,0.07); }
.hero h1 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.15; margin: 0 0 18px; letter-spacing: -0.02em; max-width: 720px; }
.hero p { font-size: 18px; opacity: 0.92; max-width: 620px; margin: 0 0 30px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 10px; font-weight: 650; font-size: 15px; text-decoration: none; cursor: pointer; border: 0; font-family: inherit; transition: transform 120ms ease, box-shadow 120ms ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: #fff; color: var(--accent); box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(0,0,0,0.26); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.55); }
.btn-ghost:hover { border-color: #fff; }

/* layout */
main { max-width: 1180px; margin: 0 auto; padding: 0 5vw 70px; }
.section-head { margin: 56px 0 26px; }
.section-head .kicker { font-size: 12px; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); margin: 6px 0 8px; letter-spacing: -0.015em; }
.section-head p { color: var(--muted); margin: 0; max-width: 640px; }

/* grids + cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.course-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform 140ms ease, box-shadow 140ms ease; }
.course-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(28,36,52,0.13); }
.course-card .thumb { height: 158px; background: linear-gradient(135deg, var(--accent-soft), #dfe4fb); display: grid; place-items: center; color: var(--accent); font-size: 44px; font-weight: 800; }
.course-card .body { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.course-card h3 { margin: 0; font-size: 17px; line-height: 1.35; }
.course-card h3 a { color: var(--ink); text-decoration: none; }
.course-card p { margin: 0; color: var(--muted); font-size: 13.5px; }
.course-meta { display: flex; gap: 14px; color: var(--muted); font-size: 12.5px; align-items: center; }
.course-meta .chip { background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 2px 10px; font-weight: 650; }
.price { font-weight: 800; color: var(--ink); font-size: 15px; }
.price.free { color: var(--ok); }
.card-foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; }

/* product cards */
.product-card .thumb { height: 170px; background: #fff; display: grid; place-items: center; border-bottom: 1px solid var(--line); font-size: 52px; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* course detail */
.course-hero { background: #fff; border-bottom: 1px solid var(--line); padding: 60px 5vw; }
.course-hero .wrap { max-width: 1180px; margin: 0 auto; }
.course-hero h1 { font-size: clamp(26px, 3.6vw, 40px); margin: 8px 0 14px; letter-spacing: -0.02em; }
.course-hero .meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.course-hero .meta b { color: var(--ink); }
.course-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; margin-top: 34px; }
@media (max-width: 900px) { .course-body { grid-template-columns: 1fr; } }
.prose { font-size: 15.5px; color: var(--ink-2); }
.prose h2 { font-size: 20px; color: var(--ink); }
.enroll-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; position: sticky; top: 90px; height: fit-content; }
.enroll-card .price { font-size: 30px; }
.enroll-card ul { list-style: none; padding: 0; margin: 14px 0 18px; color: var(--ink-2); font-size: 14px; }
.enroll-card li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.enroll-card .btn { width: 100%; justify-content: center; }

/* features (home) */
.feature-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.feature h3 { margin: 0 0 6px; font-size: 16.5px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--ink) 0%, #2c3554 100%); color: #fff; border-radius: var(--radius); padding: 44px 40px; display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; margin: 60px 0 30px; }
.cta-band h2 { margin: 0 0 6px; font-size: 26px; }
.cta-band p { margin: 0; opacity: 0.85; }

/* posts */
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.post-card time { color: var(--muted); font-size: 12.5px; }
.post-card h3 { margin: 6px 0 8px; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card p { color: var(--muted); font-size: 14px; margin: 0 0 10px; }

/* article + page */
article.page { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 44px; box-shadow: var(--shadow); }
article.page h1 { margin-top: 0; letter-spacing: -0.02em; }
article.page .prose img { border-radius: 10px; }
time { color: var(--muted); font-size: 13px; }

/* comments */
.comment { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
.comment b { font-size: 13.5px; }
.comment p { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; }

/* footer */
footer { border-top: 1px solid var(--line); background: #fff; margin-top: 40px; }
.foot-wrap { max-width: 1180px; margin: 0 auto; padding: 34px 5vw; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.foot-wrap b { color: var(--ink); }
.foot-links { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }

/* error pages */
.error-page main { text-align: center; padding-top: 12vh; }
.error-page h1 { font-size: 64px; margin: 0; color: var(--accent); }

/* Language switcher (docs/96) — segmented pill, light theme */
.v-langs{margin-left:8px}
.v-langs ul{display:flex;gap:4px;list-style:none;margin:0;padding:0}
.v-langs a.v-lang{display:inline-block;padding:4px 10px;border:1px solid var(--line);border-radius:999px;font-size:12px;line-height:1.2;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);text-decoration:none}
.v-langs a.v-lang:hover{color:var(--ink);border-color:var(--ink-2)}
.v-langs a.v-lang.current{color:var(--accent);border-color:var(--accent);background:var(--accent-soft);font-weight:700}
