/* ===========================================================
   Practical AI Masterclasses — shared enterprise theme
   =========================================================== */
:root {
    --navy: #1f3864;
    --navy-2: #1f4e79;
    --navy-deep: #14243f;
    --accent: #2e8bff;
    --accent-2: #00b4a6;
    --ink: #16223a;
    --muted: #5b6478;
    --line: #e4e8f0;
    --bg: #f6f8fc;
    --panel: #ffffff;
    --grad: linear-gradient(135deg, #1f3864 0%, #2b5aa0 55%, #2e8bff 100%);
    --radius: 14px;
    --shadow: 0 18px 44px rgba(20, 36, 63, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 820px; }

/* ---------- Top nav ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav-inner {
    max-width: 1080px; margin: 0 auto; padding: 0.85rem 1.5rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav .brand { font-weight: 800; letter-spacing: -0.02em; text-decoration: none; color: var(--navy); font-size: 1.02rem; }
.nav .brand span { color: var(--accent); }
.nav .links { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.nav .links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.92rem; }
.nav .links a:hover { color: var(--navy); }
.nav .links a.nav-cta {
    background: var(--navy); color: #fff; padding: 0.5rem 1rem; border-radius: 8px;
}
.nav .links a.nav-cta:hover { background: var(--accent); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block; padding: 0.9rem 1.7rem; border-radius: 10px;
    font-weight: 700; text-decoration: none; cursor: pointer; border: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(20,36,63,0.22); }
.btn-primary { background: #fff; color: var(--navy); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-ghost { background: rgba(255,255,255,0.10); color: #fff; border: 1.5px solid rgba(255,255,255,0.55); }
.btn-dark { background: var(--navy); color: #fff; }

/* ---------- Hero (course) ---------- */
.hero {
    background: var(--grad); color: #fff; position: relative; overflow: hidden;
    padding: 4.5rem 0 4rem;
}
.hero::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(1200px 400px at 80% -10%, rgba(255,255,255,0.16), transparent 60%);
    pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.28);
    padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.78rem;
    font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.2rem;
}
.hero h1 { font-size: 2.7rem; line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 0.9rem; max-width: 18ch; }
.hero .sub { font-size: 1.15rem; opacity: 0.95; max-width: 60ch; margin-bottom: 1.4rem; }
.hero .not { font-style: italic; opacity: 0.85; margin-bottom: 1.8rem; font-size: 0.98rem; }
.hero .cta-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero .meta-row {
    display: flex; gap: 1.6rem; flex-wrap: wrap; margin-top: 2rem;
    padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.2);
}
.hero .meta-row .m b { display: block; font-size: 1.15rem; }
.hero .meta-row .m span { opacity: 0.82; font-size: 0.85rem; }

/* ---------- Sections ---------- */
section { padding: 4rem 0; }
.section-head { margin-bottom: 2rem; }
.section-head.center { text-align: center; }
.section-head h2 { font-size: 1.9rem; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.section-head p { color: var(--muted); max-width: 62ch; }
.section-head.center p { margin-left: auto; margin-right: auto; }
.kicker { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; margin-bottom: 0.5rem; }

.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Outcomes / audience lists ---------- */
.checks { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0.8rem 1.6rem; }
.checks li { position: relative; padding-left: 1.9rem; color: var(--ink); }
.checks li::before {
    content: "✓"; position: absolute; left: 0; top: 0.05rem;
    width: 1.3rem; height: 1.3rem; border-radius: 50%;
    background: rgba(46,139,255,0.12); color: var(--accent);
    display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 800;
}

.audience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.audience-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.audience-card .ic { font-size: 1.6rem; margin-bottom: 0.4rem; }
.audience-card b { display: block; margin-bottom: 0.2rem; }
.audience-card span { color: var(--muted); font-size: 0.92rem; }

/* ---------- Curriculum table ---------- */
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
table.curriculum { width: 100%; border-collapse: collapse; background: #fff; min-width: 720px; }
table.curriculum thead th {
    background: var(--navy); color: #fff; text-align: left; padding: 0.85rem 1rem;
    font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em;
}
table.curriculum td { padding: 0.85rem 1rem; border-top: 1px solid var(--line); font-size: 0.94rem; vertical-align: top; }
table.curriculum tbody tr:nth-child(even) { background: #f4f7fc; }
table.curriculum td.num { font-weight: 800; color: var(--accent); width: 3rem; }
table.curriculum td.topic { font-weight: 700; color: var(--navy); white-space: nowrap; }

/* ---------- Module accordion ---------- */
.modules { display: grid; gap: 0.7rem; }
details.module {
    background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
details.module[open] { border-color: var(--accent); box-shadow: var(--shadow); }
details.module summary {
    cursor: pointer; list-style: none; padding: 1.05rem 1.3rem;
    display: flex; align-items: center; gap: 0.9rem; font-weight: 700; color: var(--navy);
}
details.module summary::-webkit-details-marker { display: none; }
details.module summary .n {
    flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: 8px;
    background: rgba(31,56,100,0.08); color: var(--navy);
    display: flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 800;
}
details.module summary .arw { margin-left: auto; color: var(--muted); transition: transform 0.2s ease; }
details.module[open] summary .arw { transform: rotate(180deg); }
details.module .body { padding: 0 1.3rem 1.2rem 4.2rem; }
details.module .body ul { list-style: none; display: grid; gap: 0.45rem; }
details.module .body li { position: relative; padding-left: 1.1rem; color: var(--muted); font-size: 0.94rem; }
details.module .body li::before { content: "–"; position: absolute; left: 0; color: var(--accent); }

/* ---------- Chips / example pills ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0.5rem 1rem; font-size: 0.9rem; color: var(--navy); font-weight: 600; }

/* ---------- Formats table ---------- */
.formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.format-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; }
.format-card .dur { color: var(--accent); font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.format-card h4 { font-size: 1.15rem; margin: 0.3rem 0 0.5rem; }
.format-card .best { font-size: 0.85rem; color: var(--navy); font-weight: 700; margin-bottom: 0.5rem; }
.format-card p { color: var(--muted); font-size: 0.92rem; flex-grow: 1; }
.format-card .price-tag { font-size: 1.7rem; font-weight: 800; color: var(--navy); margin: 0.35rem 0 0.6rem; letter-spacing: -0.01em; }
.format-card .price-tag small { font-size: 0.72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Assets columns ---------- */
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.asset-block h4 { color: var(--navy); margin-bottom: 0.7rem; font-size: 1.1rem; }
.asset-block ul { list-style: none; display: grid; gap: 0.4rem; }
.asset-block li { position: relative; padding-left: 1.4rem; color: var(--muted); font-size: 0.94rem; }
.asset-block li::before { content: "▪"; position: absolute; left: 0; color: var(--accent-2); }

/* ---------- Capstone highlight ---------- */
.capstone {
    background: linear-gradient(135deg, #14243f, #1f3864); color: #fff; border-radius: 18px;
    padding: 2.4rem; box-shadow: var(--shadow);
}
.capstone .kicker { color: #7fc0ff; }
.capstone h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.capstone p { opacity: 0.9; }
.capstone ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.5rem 1.4rem; margin-top: 1.2rem; }
.capstone li { position: relative; padding-left: 1.3rem; opacity: 0.92; font-size: 0.94rem; }
.capstone li::before { content: "→"; position: absolute; left: 0; color: #7fc0ff; }

/* ---------- Enquiry / get in touch ---------- */
.enquiry { background: var(--grad); color: #fff; }
.enquiry .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.enquiry h2 { font-size: 2rem; letter-spacing: -0.02em; margin-bottom: 0.6rem; }
.enquiry .lead { opacity: 0.94; margin-bottom: 1.2rem; }
.enquiry .pricing-note {
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
    border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 1.2rem;
}
.enquiry .pricing-note b { display: block; font-size: 1.05rem; }
.enquiry .pricing-note span { opacity: 0.85; font-size: 0.92rem; }
.form-card { background: #fff; color: var(--ink); border-radius: 18px; padding: 1.8rem; box-shadow: var(--shadow); }
.form-card label { display: block; font-weight: 700; font-size: 0.85rem; margin: 0.7rem 0 0.3rem; color: var(--navy); }
.form-card input, .form-card select, .form-card textarea {
    width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: 9px;
    font: inherit; color: var(--ink); background: #fbfcfe;
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.form-card textarea { min-height: 90px; resize: vertical; }
.form-card .btn { width: 100%; margin-top: 1.1rem; }
.form-card .fineprint { font-size: 0.78rem; color: var(--muted); margin-top: 0.7rem; text-align: center; }
.form-card .hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; opacity: 0; }
.enquiry-status { margin-top: 0.2rem; font-size: 0.95rem; font-weight: 600; line-height: 1.5; }
.enquiry-status.ok { color: #0f9d6b; background: rgba(16,185,129,0.10); border: 1px solid rgba(16,185,129,0.30); border-radius: 10px; padding: 0.9rem 1rem; }
.enquiry-status.err { color: #c0392b; }

/* ---------- Footer ---------- */
footer.site { background: var(--navy-deep); color: #c8d0e2; padding: 3rem 0 2.5rem; text-align: center; }
footer.site .links a { color: #fff; text-decoration: none; margin: 0 0.6rem; font-weight: 600; font-size: 0.95rem; }
footer.site .links a:hover { color: #7fc0ff; }
footer.site .copy { margin-top: 1rem; font-size: 0.88rem; opacity: 0.65; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .enquiry .wrap { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.1rem; }
    .nav .links a:not(.nav-cta) { display: none; }
}
@media (max-width: 600px) {
    section { padding: 3rem 0; }
    .hero { padding: 3.2rem 0 3rem; }
}

/* ---------- Offer / pricing ---------- */
.was { text-decoration: line-through; opacity: 0.55; font-weight: 600; margin-right: 0.35rem; }
.offer-pill {
    display: inline-block; background: var(--accent-2); color: #fff;
    font-weight: 800; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase;
    padding: 0.25rem 0.6rem; border-radius: 999px; vertical-align: middle; margin-left: 0.4rem;
}
.date-banner {
    background: var(--grad); color: #fff; text-align: center;
    padding: 0.75rem 1rem; font-weight: 700; font-size: 0.95rem; line-height: 1.5;
}
.date-banner a { color: #fff; text-decoration: underline; font-weight: 800; white-space: nowrap; }
.curriculum td.time { white-space: nowrap; font-weight: 700; color: var(--navy); }
.curriculum tr.break td { background: rgba(46,139,255,0.06); font-style: italic; color: var(--muted); text-align: center; }
.code-note {
    display: inline-block; margin-top: 0.55rem; font-size: 0.85rem; font-weight: 600; color: var(--navy);
    background: rgba(0,180,166,0.10); border: 1px dashed rgba(0,180,166,0.45);
    border-radius: 8px; padding: 0.4rem 0.7rem; line-height: 1.4;
}
.code-note b { letter-spacing: 0.02em; }
.hero .code-note { color: #eaf3ff; background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.35); }
.format-card .btn { margin-top: 0.7rem; width: 100%; text-align: center; }
