/* course365.css — Network365 training course detail pages */

/* ---------- Hero ---------- */
.co-hero { position: relative; overflow: hidden; padding: 64px 0 40px; isolation: isolate; border-bottom: 1px solid var(--line); }
.co-hero .bg, .co-hero .veil, .co-hero .grid-mask { display: none; }
/* Pages that drop the hero visual entirely — text-only, full-width hero */
.no-hero-visual .co-hero .wrap { grid-template-columns: 1fr; }
.no-hero-visual .co-visual { display: none; }
.no-hero-visual .co-hero h1, .no-hero-visual .co-hero .lead { max-width: 30ch; }
.co-hero .veil { position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(90deg, var(--bg-dark, #0b0f16) 14%, rgba(10,14,20,.62) 52%, rgba(10,14,20,.30) 100%),
              linear-gradient(0deg, var(--bg-dark, #0b0f16) 2%, rgba(10,14,20,.45) 48%, transparent 100%); }
.co-hero .grid-mask { position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(255,138,30,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,138,30,.05) 1px, transparent 1px);
  background-size: 46px 46px; -webkit-mask-image: radial-gradient(72% 70% at 30% 12%, #000, transparent 80%); mask-image: radial-gradient(72% 70% at 30% 12%, #000, transparent 80%); }
.co-hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 920px) { .co-hero .wrap { grid-template-columns: 1fr; gap: 32px; } }
.co-pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(255,138,30,.32); background: rgba(255,138,30,.07); border-radius: 999px; padding: 6px 13px; }
.co-pill svg { width: 13px; height: 13px; fill: none; stroke: var(--accent); stroke-width: 1.8; }
.co-hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.14; letter-spacing: -.02em; margin: 16px 0 12px; max-width: 18ch;
  background: linear-gradient(122deg, #fff 32%, #ffe2c0 62%, #ff9c44 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.co-hero .lead { font-size: clamp(1rem, 1.5vw, 1.14rem); color: var(--text-secondary); line-height: 1.6; max-width: 54ch; }
.co-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 24px; }
.co-fact { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 13px; background: rgba(255,255,255,.015); }
.co-fact svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 1.7; flex: 0 0 auto; }
.co-fact b { font-size: 13.5px; font-weight: 600; color: var(--text-primary); display: block; line-height: 1.1; }
.co-fact span { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-secondary); }
.co-hero .hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* hero visual card */
.co-card { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,138,30,.22); background: linear-gradient(180deg, #15100a, #0c0e13); box-shadow: 0 40px 90px -42px #000, inset 0 1px 0 rgba(255,255,255,.04); aspect-ratio: 4/3; }
.co-card img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; }
.co-card::after { content: ''; position: absolute; top: 0; left: -60%; width: 45%; height: 100%; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(255,255,255,.08), transparent); transform: skewX(-18deg); animation: coShine 5.5s ease-in-out infinite; }
@keyframes coShine { 0%,60% { left: -60%; } 86%,100% { left: 120%; } }
.co-card .badge { position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: rgba(10,12,17,.72); border: 1px solid rgba(255,138,30,.3); border-radius: 8px; padding: 6px 10px; backdrop-filter: blur(4px); }

/* ---------- Body sections ---------- */
.co-shell { padding: 56px 0 8px; }
.co-grid { display: grid; grid-template-columns: 1.6fr .9fr; gap: 56px; align-items: start; }
@media (max-width: 960px) { .co-grid { grid-template-columns: 1fr; gap: 40px; } }
.co-sec { margin-bottom: 40px; }
.co-sec > h2 { position: relative; padding-left: 16px; font-size: clamp(1.2rem, 1.9vw, 1.5rem); line-height: 1.25; letter-spacing: -.01em; margin-bottom: 16px; }
.co-sec > h2::before { content: ''; position: absolute; left: 0; top: .14em; width: 5px; height: 1.02em; border-radius: 3px; background: linear-gradient(180deg, var(--accent), #c75e12); }
.co-sec > p { color: var(--text-secondary); line-height: 1.7; margin-bottom: 12px; }
.co-sec > p strong { color: var(--text-primary); font-weight: 600; }

/* syllabus modules */
.co-mods { display: grid; gap: 12px; counter-reset: mod; }
.co-mod { display: grid; grid-template-columns: 42px 1fr; gap: 16px; align-items: start; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: rgba(255,255,255,.012); transition: border-color .2s, transform .2s; }
.co-mod:hover { border-color: rgba(255,138,30,.34); transform: translateX(3px); }
.co-mod .n { counter-increment: mod; font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--accent); width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,138,30,.3); border-radius: 10px; background: rgba(255,138,30,.07); }
.co-mod .n::before { content: counter(mod, decimal-leading-zero); }
.co-mod h4 { font-size: 1rem; font-weight: 600; margin: 4px 0 4px; }
.co-mod p { color: var(--text-secondary); font-size: .9rem; line-height: 1.55; }

/* audience / prereqs ticks */
.co-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.co-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; color: var(--text-secondary); line-height: 1.55; }
.co-list li svg { width: 22px; height: 22px; margin-top: 1px; }
.co-list li b { color: var(--text-primary); font-weight: 600; }
.co-list.warn li svg circle, .co-list.warn li svg path { stroke: var(--warn, #ffc14d); }

/* aside */
.co-aside { position: sticky; top: 92px; display: grid; gap: 16px; }
.co-panel { border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: linear-gradient(180deg, rgba(255,138,30,.05), rgba(255,138,30,.015)); }
.co-panel h4 { font-size: .82rem; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.co-panel .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.co-panel .row:first-of-type { border-top: none; }
.co-panel .row .k { color: var(--text-secondary); display: inline-flex; align-items: center; gap: 8px; }
.co-panel .row .k svg { width: 15px; height: 15px; fill: none; stroke: var(--accent); stroke-width: 1.7; }
.co-panel .row .v { color: var(--text-primary); font-weight: 600; text-align: right; }
.co-panel .btn { width: 100%; justify-content: center; margin-top: 16px; }
.co-incl { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 9px; }
.co-incl li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 13px; color: var(--text-secondary); }
.co-incl li svg { width: 18px; height: 18px; }

/* ---------- Enrol form ---------- */
.co-enrol { border-top: 1px solid var(--line); background: var(--bg-3, #0c0f15); }
.co-enrol .wrap { display: grid; grid-template-columns: .82fr 1.18fr; gap: 0; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; margin-top: 60px; margin-bottom: 80px; }
@media (max-width: 880px) { .co-enrol .wrap { grid-template-columns: 1fr; } }
.co-enrol .info { padding: 40px 36px; position: relative; background: linear-gradient(160deg, #15100a, #0c0e13); border-right: 1px solid var(--line); }
@media (max-width: 880px) { .co-enrol .info { border-right: none; border-bottom: 1px solid var(--line); } }
.co-enrol .info .stripes { position: absolute; inset: 0; opacity: .3; pointer-events: none; background-image: repeating-linear-gradient(135deg, rgba(255,138,30,.08) 0 2px, transparent 2px 13px); }
.co-enrol .info > * { position: relative; z-index: 1; }
.co-enrol .info h2 { font-size: 1.5rem; letter-spacing: -.01em; margin: 12px 0 10px; }
.co-enrol .info p { color: var(--text-secondary); line-height: 1.6; font-size: .95rem; }
.co-enrol .info .meta { margin-top: 22px; display: grid; gap: 10px; }
.co-enrol .info .meta a, .co-enrol .info .meta span { display: inline-flex; align-items: center; gap: 9px; color: var(--text-secondary); font-size: 13.5px; text-decoration: none; }
.co-enrol .info .meta svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 1.7; }
.co-form { padding: 40px 36px; }
@media (max-width: 560px) { .co-enrol .info, .co-form { padding: 28px 22px; } }
.co-form .fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.co-form .field { display: flex; flex-direction: column; gap: 6px; }
.co-form .field.full { grid-column: 1 / -1; }
.co-form label { font-size: 12.5px; font-weight: 600; color: var(--text-primary); }
.co-form label .req { color: var(--accent); }
.co-form input, .co-form select, .co-form textarea { background: var(--bg-dark, #0b0f16); border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px; color: var(--text-primary); font: inherit; font-size: 14px; transition: border-color .18s, box-shadow .18s; }
.co-form input::placeholder, .co-form textarea::placeholder { color: #5b6472; }
.co-form input:focus, .co-form select:focus, .co-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,138,30,.13); }
.co-form textarea { resize: vertical; min-height: 96px; }
.co-form .field.invalid input, .co-form .field.invalid select, .co-form .field.invalid textarea { border-color: var(--crit, #ff5a5a); }
.co-form .err { color: var(--crit, #ff5a5a); font-size: 11.5px; min-height: 1px; }
.co-form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.co-form .fineprint { font-size: 11.5px; color: var(--text-secondary); margin-top: 12px; line-height: 1.5; }
.co-ok { display: none; text-align: center; padding: 30px 10px; }
.co-ok.show { display: block; animation: coIn .5s ease; }
@keyframes coIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.co-ok .ic { width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: rgba(54,211,153,.12); border: 1px solid rgba(54,211,153,.35); }
.co-ok .ic svg { width: 28px; height: 28px; fill: none; stroke: var(--ok, #36d399); stroke-width: 2.4; }
.co-ok h3 { font-size: 1.3rem; margin-bottom: 8px; }
.co-ok p { color: var(--text-secondary); }

/* reveal */
.co-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.co-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .co-reveal { opacity: 1; transform: none; } .co-card::after { animation: none; display: none; } }
