/*
Theme Name: Network Net Institute
Theme URI: https://networknet.co.in/
Author: Network Net
Description: Network Net Computer Institute theme. Full design CSS is included in this file (and mirrored in assets/style.css).
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
License: GPL-2.0-or-later
Text Domain: networknet
*/

/* Network Net Computer Institute - stylesheet
   BRAND NOTE: the live site's exact hex colours could not be read, so the palette below is an
   assumption. Change the variables in :root to match the logo and every page updates. */
:root {
  --navy: #0b2e59;
  --navy-deep: #07203f;
  --blue: #1d5fb8;
  --accent: #c2410c;
  --accent-dark: #9a3412;
  --gold: #fbbf24;
  --ink: #17233a;
  --muted: #55627a;
  --line: #dde4f0;
  --bg: #f5f8fd;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(11, 46, 89, 0.09);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.65; font-size: 1.0625rem; }
img, svg { max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section.alt { background: var(--bg); }
.section.dark { background: var(--navy); color: #e6eefb; }
.section.dark h2, .section.dark h3 { color: #fff; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .7rem; }
.dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.dark .lead, .hero .lead, .page-hero .lead { color: #cfdcf2; }
.section-head { max-width: 720px; margin-bottom: 2.2rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.4rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 700; transition: transform .15s, background .15s, color .15s, border-color .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

/* Header */
.topbar { background: var(--navy-deep); color: #cfdcf2; font-size: .9rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; justify-content: space-between; padding: .45rem 0; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { font-size: 1.45rem; color: var(--navy); letter-spacing: -0.02em; }
.brand strong span { color: var(--accent); }
.brand small { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; margin-top: 3px; }
.nav-toggle { display: none; background: none; border: 2px solid var(--navy); color: var(--navy); border-radius: 10px; padding: .45rem .7rem; font: inherit; font-weight: 700; cursor: pointer; }
.nav { display: flex; align-items: center; gap: .3rem; }
.nav > ul { list-style: none; display: flex; align-items: center; gap: .2rem; }
.nav li { position: relative; }
.nav > ul > li > a { display: block; padding: .6rem .85rem; text-decoration: none; color: var(--ink); font-weight: 600; border-radius: 8px; }
.nav > ul > li > a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); border-radius: 0; }
.sub { position: absolute; left: 0; top: 100%; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); padding: 1rem 1.2rem; display: none; grid-template-columns: repeat(2, minmax(210px, 1fr)); gap: .4rem 1.8rem; width: max-content; max-width: 90vw; list-style: none; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { display: grid; }
.sub .sub-title { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin: .5rem 0 .3rem; font-weight: 700; }
.sub ul { list-style: none; }
.sub a { display: block; padding: .25rem 0; text-decoration: none; color: var(--ink); font-size: .96rem; }
.sub a:hover { color: var(--accent); }
.sub .group { break-inside: avoid; }
.nav-cta { margin-left: .6rem; padding: .6rem 1.1rem; font-size: .95rem; }

/* Hero */
.hero, .page-hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(29,95,184,.55), transparent 60%), linear-gradient(135deg, var(--navy-deep), var(--navy)); color: #fff; }
.hero { padding: clamp(3rem, 8vw, 6rem) 0; }
.hero h1, .page-hero h1 { color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 3rem; align-items: center; }
.stat-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 22px; padding: 1.6rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; backdrop-filter: blur(4px); }
.stat strong { display: block; font-size: clamp(1.9rem, 4vw, 2.7rem); color: var(--gold); line-height: 1; }
.stat span { font-size: .95rem; color: #dbe6f8; }
.page-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.crumbs { font-size: .9rem; margin-bottom: 1rem; color: #b9c9e6; }
.crumbs a { color: #fff; }
.crumbs span[aria-hidden] { margin: 0 .4rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; list-style: none; }
.chip { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); color: #fff; padding: .3rem .85rem; border-radius: 999px; font-size: .9rem; font-weight: 600; }

/* Cards & grids */
.grid { display: grid; gap: 1.4rem; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c4d3ec; }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.num { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; margin-bottom: .9rem; }
.course-card { display: flex; flex-direction: column; border-top: 4px solid var(--accent); }
.course-card .meta { color: var(--muted); font-size: .9rem; font-weight: 600; margin-bottom: .6rem; }
.course-card .more { margin-top: auto; padding-top: .8rem; font-weight: 700; text-decoration: none; }
.course-card .more:hover { text-decoration: underline; }
.group-block + .group-block { margin-top: 2.6rem; }
.group-block > h3 { font-size: 1.3rem; border-left: 5px solid var(--accent); padding-left: .8rem; margin-bottom: 1.1rem; }
.journey .card { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); color: #e6eefb; }
.journey .card:hover { box-shadow: none; border-color: var(--gold); }
.journey ul { list-style: none; }
.journey li { padding: .3rem 0 .3rem 1.2rem; position: relative; }
.journey li::before { content: ""; position: absolute; left: 0; top: .95em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.quote { border-left: 5px solid var(--accent); padding: .4rem 0 .4rem 1.2rem; }
.quote p { font-size: 1.12rem; margin: 0; }
.quote h3 { margin-bottom: .3rem; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.8rem; }
.filter { border: 2px solid var(--navy); background: #fff; color: var(--navy); padding: .5rem 1.1rem; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; }
.filter[aria-pressed="true"], .filter:hover { background: var(--navy); color: #fff; }
[hidden] { display: none !important; }

/* Course detail */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 3rem; align-items: start; }
.side { position: sticky; top: 92px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.side dl { margin: 0 0 1.2rem; }
.side dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--accent); margin-top: .9rem; }
.side dd { margin: .15rem 0 0; font-weight: 600; color: var(--navy); }
.side .btn { width: 100%; justify-content: center; margin-top: .6rem; }
.block { margin-bottom: 2.6rem; }
.modules { list-style: none; counter-reset: m; display: grid; gap: .8rem; }
.modules.two { grid-template-columns: 1fr 1fr; }
.modules li { counter-increment: m; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem .9rem 3.4rem; position: relative; }
.modules li::before { content: counter(m); position: absolute; left: .9rem; top: .9rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--navy); color: #fff; font-size: .85rem; font-weight: 800; display: grid; place-items: center; }
.modules li strong { display: block; color: var(--navy); }
.modules li span { color: var(--muted); font-size: .96rem; }
.track { font-weight: 800; color: var(--accent); margin: 1.2rem 0 .6rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; }
.tag { background: var(--bg); border: 1px solid var(--line); color: var(--navy); padding: .3rem .85rem; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.ticks { list-style: none; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.7rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: .9rem; height: .5rem; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg) scale(.9); }
.notice { background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; border-radius: 12px; padding: .8rem 1rem; font-size: .96rem; }
details.faq { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: .7rem; }
details.faq summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); }
details.faq[open] summary::after { content: "–"; }
details.faq p { padding: 0 1.2rem 1rem; margin: 0; color: var(--muted); }

/* Contact + form */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.contact-card { text-decoration: none; color: inherit; display: block; }
.contact-card .ic { width: 2.8rem; height: 2.8rem; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; margin-bottom: .9rem; }
.contact-card strong { display: block; color: var(--navy); }
.contact-card span { color: var(--muted); font-size: .96rem; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.8rem; box-shadow: var(--shadow); }
.form h2, .form h3 { margin-bottom: .3rem; font-size: 1.4rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .3rem; color: var(--navy); }
.field .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: .75rem .9rem; border: 2px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(29,95,184,.2); }
.field [aria-invalid="true"] { border-color: #b91c1c; }
.err { color: #b91c1c; font-size: .9rem; margin-top: .3rem; min-height: 1.1em; font-weight: 600; }
.form-note { font-size: .9rem; color: var(--muted); margin: .8rem 0 0; }
.cta-band { background: linear-gradient(135deg, var(--accent), #ea580c 120%); color: #fff; border-radius: 22px; padding: clamp(1.8rem, 4vw, 3rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { color: #fff; margin: 0 0 .3rem; }
.cta-band p { margin: 0; color: #ffe9dc; }
.cta-band .btn { background: #fff; color: var(--accent-dark); }
.cta-band .btn:hover { background: var(--navy); color: #fff; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #c3d1ea; padding: 3.5rem 0 1.5rem; font-size: .98rem; }
.site-footer .foot-title { color: #fff; font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .6rem; }
.site-footer a { color: #c3d1ea; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; }
.site-footer li { margin: .35rem 0; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer .brand strong { color: #fff; }
.site-footer .brand small { color: #9db0d1; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2.2rem; padding-top: 1.2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; font-size: .9rem; }

/* Motion */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* Responsive */
@media (max-width: 1020px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .detail { grid-template-columns: 1fr; }
  .side { position: static; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 1.4rem; max-height: calc(100vh - 72px); overflow: auto; }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav > ul > li > a { padding: .8rem .4rem; }
  .sub { position: static; display: grid; grid-template-columns: 1fr; box-shadow: none; border: 0; padding: 0 0 0 .8rem; width: auto; }
  .nav-cta { margin: .6rem 0 0; justify-content: center; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
  .g2, .g3, .g4, .modules.two, .contact-cards, .foot-grid { grid-template-columns: 1fr; }
  .stat-card { padding: 1.2rem; }
  .topbar .wrap { justify-content: center; text-align: center; }
  .btn-row .btn { flex: 1 1 100%; justify-content: center; }
}

/* A group with a single card spans the full row, so no empty cells remain */
.g3:has(> :only-child) { grid-template-columns: 1fr; }
