/* =========================================================
   SHARED STYLESHEET  (Hubun + Tyarikaro)
   Company colour is switched with a class on <body>:
   <body class="theme-hubun">  or  <body class="theme-tyarikaro">
========================================================= */

:root {
    --ink: #14213d;
    --ink-light: #263858;
    --bg: #f6f7fb;
    --card: #ffffff;
    --line: #e2e5ee;
    --muted: #687187;
    --yellow: #f5b700;
    --yellow-light: #fff5cc;
    --accent: #0f766e;
    --accent-soft: #e3f4f1;
    --shadow: 0 15px 40px rgba(20, 33, 61, .08);
    --shadow-sm: 0 4px 16px rgba(20, 33, 61, .06);
}

body.theme-hubun {
    --accent: #0f766e;
    --accent-soft: #e3f4f1;
}

body.theme-tyarikaro {
    --accent: #6d3df0;
    --accent-soft: #eee8ff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
}

a { text-decoration: none; color: inherit; }

.container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}


/* ---------- HEADER ---------- */

.site-header {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span { color: var(--yellow); }

nav { display: flex; gap: 30px; }

nav a {
    color: var(--muted);
    font-weight: 600;
    position: relative;
    transition: .2s;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -6px;
    width: 0; height: 2px;
    background: var(--accent);
    transition: width .25s;
}

nav a:hover { color: var(--ink); }
nav a:hover::after { width: 100%; }

.header-btn,
.primary-btn {
    background: var(--ink);
    color: #fff;
    border-radius: 10px;
    padding: 11px 19px;
    font-weight: 700;
    transition: .2s;
}

.header-btn:hover,
.primary-btn:hover {
    background: var(--ink-light);
    transform: translateY(-1px);
}

.secondary-btn {
    border: 1px solid var(--line);
    background: #fff;
    padding: 11px 19px;
    border-radius: 10px;
    font-weight: 700;
    transition: .2s;
}

.secondary-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}


/* ---------- INTRO ---------- */

.intro {
    background:
        radial-gradient(circle at 15% 20%, var(--accent-soft) 0, transparent 45%),
        radial-gradient(circle at 85% 80%, var(--yellow-light) 0, transparent 40%),
        #fff;
    border-bottom: 1px solid var(--line);
    padding: 70px 0 60px;
    text-align: center;
}

.intro h1 {
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -2px;
    margin: 0 auto 18px;
    max-width: 820px;
}

.intro h1 strong { color: var(--accent); }

.intro p {
    color: var(--muted);
    font-size: 18px;
    max-width: 620px;
    margin: 0 auto;
}

.intro-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    flex-wrap: wrap;
}


/* ---------- SECTIONS ---------- */

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 12px;
}

.courses-section { padding: 75px 20px; }

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 35px;
}

.section-heading h2 {
    font-size: 34px;
    margin: 0;
    letter-spacing: -1px;
}

.section-heading p {
    color: var(--muted);
    max-width: 420px;
    margin: 0;
}

.centered { display: block; text-align: center; }


/* ---------- BANNERS & WIDGETS ---------- */

.bw-block {
    max-width: 1040px;
    margin: 0 auto 80px;
    text-align: center;
}

.bw-block:last-child { margin-bottom: 0; }

.bw-group { margin-bottom: 44px; }
.bw-group:last-child { margin-bottom: 0; }

.bw-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}

.bw-subtitle small {
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 999px;
    padding: 3px 11px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .3px;
}

.bw-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.bw-item {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.bw-item > a {
    display: block;
    max-width: 100%;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 10px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.bw-item > a:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.bw-item img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 0;
    border-radius: 12px;
}

.bw-panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
    padding: 36px 24px;
}

.bw-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
}

.bw-widget {
    position: relative;
    max-width: 100%;
    overflow-x: auto;
    display: flex;
    justify-content: center;
    padding: 4px;
}


/* ---------- FEATURES ---------- */

.features-section {
    background: #fff;
    padding: 75px 0;
    border-top: 1px solid var(--line);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature {
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 25px;
    transition: transform .2s, box-shadow .2s;
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--yellow-light);
    color: var(--ink);
    font-weight: 800;
    margin-bottom: 15px;
}

.feature h3 { margin: 0 0 8px; font-size: 17px; }
.feature p  { color: var(--muted); font-size: 14px; margin: 0; }


/* ---------- FOOTER ---------- */

footer {
    background: var(--ink);
    color: #fff;
    padding: 35px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: center;
}

.footer-inner strong { font-size: 22px; }
.footer-inner p { margin: 5px 0 0; color: #cbd3df; font-size: 13px; }
.footer-inner span { color: #cbd3df; font-size: 12px; }


/* ---------- RESPONSIVE ---------- */

@media (max-width: 950px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
    .container { width: min(100% - 28px, 1180px); }
    nav { display: none; }
    .header-btn { padding: 9px 12px; font-size: 12px; }
    .intro { padding: 48px 0 40px; }
    .intro p { font-size: 16px; }
    .courses-section { padding: 50px 14px; }
    .section-heading { display: block; }
    .section-heading p { margin-top: 12px; }
    .section-heading h2 { font-size: 28px; }
    .bw-block { margin-bottom: 56px; }
    .bw-item > a { padding: 6px; border-radius: 12px; }
    .bw-item img { border-radius: 8px; }
    .bw-panel { padding: 24px 12px; }
    .feature-grid { grid-template-columns: 1fr; }
    .footer-inner { display: block; }
    .footer-inner span { display: block; margin-top: 20px; }
}