/* ==========================================================================
   WP-specific additions — layered on top of the original style.css.
   Keeps style.css a clean, untouched mirror of the original design while
   these rules cover markup WordPress itself introduces (pagination,
   comments, galleries) plus the new dynamic/automation UI elements.
   ========================================================================== */

/* Prose body wrapper for Career Role / Job / Course / News single pages
   (wraps ACF WYSIWYG output or the_content()) — reuses the same reading
   typography as the About page's .story-inner p rule. */
.role-description { font-size: 13px; color: #3a4a6a; line-height: 1.8; }
.role-description p { margin-bottom: 14px; }
.role-description ul, .role-description ol { margin: 0 0 14px 20px; }
.role-description li { margin-bottom: 6px; }
.role-description h2, .role-description h3 { font-size: 15px; font-weight: 800; color: var(--text); margin: 18px 0 10px; }

/* Custom logo wrapper (Appearance → Customize → Site Identity) — aligns
   an uploaded image logo the same way the original text .nav-logo sits. */
.nav-logo-wrap { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-wrap img { max-height: 38px; width: auto; display: block; }

/* Default bundled logo (shown until/unless an admin sets a custom logo
   via Appearance → Customize → Site Identity). Sized to sit comfortably
   in the nav bar without dominating it — same max-height as the
   Customizer logo path above, so swapping between the two never
   changes the header's height. */
.nav-logo-img { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-img img { max-height: 30px; width: auto; display: block; }
@media (max-width: 480px) {
  .nav-logo-img img { max-height: 24px; }
}

/* Video embeds (Career Role YouTube videos) */
.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: 12px;
  overflow: hidden;
  background: #060920;
  margin-bottom: 14px;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 20px 0;
}
@media (max-width: 768px) {
  .video-grid { grid-template-columns: 1fr; }
}

/* Pagination (WP default markup from the_posts_pagination) */
.pagination,
.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 32px 0;
}
.pagination .page-numbers,
.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  background: #f4f7fc;
  color: var(--text, #080c28);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--border, #e3e8f0);
}
.pagination .page-numbers.current,
.nav-links .page-numbers.current {
  background: var(--blue, #1a6cff);
  color: #fff;
  border-color: var(--blue, #1a6cff);
}

/* Skills / Career Path / Certifications repeater output on Career Role pages */
.role-skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 22px;
}
.role-skill-chip {
  background: #f4f7fc;
  border: 1px solid var(--border, #e3e8f0);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #2a3a5a;
}
.role-skill-chip.soft { background: #f3eeff; color: #7c3aed; border-color: transparent; }

.role-path-track {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 14px 0 22px;
}
.role-path-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-left: 2px solid var(--blue, #1a6cff);
  padding-left: 18px;
  margin-left: 8px;
  position: relative;
}
.role-path-step::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue, #1a6cff);
}
.role-path-title { font-weight: 800; font-size: 13px; color: #080c28; }
.role-path-years { font-size: 11px; color: #5a6a8a; }

.role-cert-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 22px; }
.role-cert-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f4f7fc;
  border-radius: 10px;
  padding: 10px 14px;
  border-left: 3px solid #2da80a;
}
.role-cert-item a { font-size: 12px; font-weight: 700; color: var(--blue, #1a6cff); text-decoration: none; }

/* Contact form error state */
.form-error { color: #c0392b; font-size: 13px; margin-top: 10px; }

/* Dynamic content loading skeletons */
.bits-skeleton {
  background: linear-gradient(90deg, #f4f7fc 25%, #e9eefc 37%, #f4f7fc 63%);
  background-size: 400% 100%;
  animation: bits-shimmer 1.4s ease infinite;
  border-radius: 8px;
  height: 14px;
  margin-bottom: 8px;
}
@keyframes bits-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* Job/Course/News card meta row used on archive pages */
.bits-card-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #5a6a8a;
  margin-top: 6px;
}
.bits-card-meta span { display: inline-flex; align-items: center; gap: 4px; }

/* Footer widget area (optional) */
.footer-widget { margin-bottom: 14px; }
.footer-widget-title { font-size: 12px; font-weight: 800; color: #fff; margin-bottom: 8px; }

/* ==========================================================================
   About / Career Role / story-style page sections — originally defined
   inline in about.html, centralised here so every template using this
   layout pattern (About, Career Role single, Job/Course single) shares
   one definition.
   ========================================================================== */
.about-hero { background: linear-gradient(160deg,#060920,#0d1545); padding: 52px 28px 48px; text-align: center; position: relative; overflow: hidden; }
.about-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 400px 300px at 50% 60%, rgba(26,108,255,.12), transparent 70%); pointer-events: none; }
.about-hero-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.about-hero h1 { font-size: 2.5rem; font-weight: 900; color: #fff; margin-bottom: 10px; line-height: 1.18; letter-spacing: -0.01em; }
.about-hero p { font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.7; max-width: 560px; margin: 0 auto; }

.founder-section { padding: 40px 28px; background: #fff; border-bottom: 1px solid var(--border); }
.founder-inner { max-width: 820px; margin: 0 auto; display: flex; gap: 36px; align-items: flex-start; flex-wrap: wrap; }
.founder-avatar { width: 110px; height: 110px; border-radius: 50%; background: linear-gradient(135deg,#1a6cff,#7c3aed); display: flex; align-items: center; justify-content: center; font-size: 42px; flex-shrink: 0; border: 4px solid var(--bg-info); }
.founder-body { flex: 1; min-width: 280px; }
.founder-role { font-size: 11px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.founder-body h2 { font-size: 22px; font-weight: 900; color: var(--text); margin-bottom: 5px; }
.founder-title { font-size: 13px; font-weight: 600; color: var(--text2); margin-bottom: 14px; }
.founder-body p { font-size: 13px; color: #3a4a6a; line-height: 1.75; margin-bottom: 12px; }

.story-section { padding: 40px 28px; background: var(--bg); }
.story-inner { max-width: 820px; margin: 0 auto; }
.story-inner h2 { font-size: 20px; font-weight: 900; color: var(--text); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.story-inner h2::after { content: ''; flex: 1; height: 2px; background: linear-gradient(90deg,var(--blue),transparent); display: block; }
.story-inner p { font-size: 13px; color: #3a4a6a; line-height: 1.8; margin-bottom: 14px; }

.about-stats { display: grid; grid-template-columns: repeat(4,1fr); background: linear-gradient(135deg,#060920,#0d1545); border-radius: 12px; overflow: hidden; border: 1px solid rgba(100,130,255,.15); margin-bottom: 28px; }
.about-stat { padding: 22px 16px; text-align: center; border-right: 1px solid rgba(255,255,255,.08); }
.about-stat:last-child { border-right: none; }
.about-stat .n { font-size: 24px; font-weight: 900; color: var(--amber); }
.about-stat .l { font-size: 11px; color: rgba(255,255,255,.55); margin-top: 4px; }

.mission-card { background: linear-gradient(135deg,#060920,#0d1545); border-radius: 16px; padding: 36px; margin-bottom: 28px; border: 1px solid rgba(100,130,255,.2); position: relative; overflow: hidden; }
.mission-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 300px 200px at 80% 50%, rgba(26,108,255,.1), transparent 70%); pointer-events: none; }
.mission-inner { position: relative; z-index: 1; }
.mission-label { font-size: 11px; font-weight: 700; color: #4d9fff; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.mission-label::before { content: ''; width: 28px; height: 2px; background: var(--blue); display: block; }
.mission-card h3 { font-size: 18px; font-weight: 900; color: #fff; margin-bottom: 14px; }
.mission-card p { font-size: 13px; color: rgba(255,255,255,.78); line-height: 1.8; margin: 0; }

.pillars-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 24px; }
.pillar { background: #fff; border-radius: 12px; padding: 20px; border-top: 4px solid var(--blue); box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.pillar .ico { font-size: 28px; margin-bottom: 10px; }
.pillar h4 { font-size: 13px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.pillar p { font-size: 11px; color: var(--text2); line-height: 1.6; margin: 0; }

.award-box { background: #fff; border-radius: 12px; padding: 20px 22px; border: 1px solid var(--border); display: flex; align-items: center; gap: 16px; }
.award-box span.ico { font-size: 36px; flex-shrink: 0; }
.award-box h4 { font-size: 13px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.award-box p { font-size: 12px; color: var(--text2); line-height: 1.65; margin: 0; }

.contact-section { padding: 36px 28px; background: #fff; border-top: 1px solid var(--border); }
.contact-inner { max-width: 820px; margin: 0 auto; }
.contact-inner h2 { font-size: 18px; font-weight: 900; color: var(--text); margin-bottom: 18px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-card { background: #f4f7fc; border-radius: 12px; padding: 20px; border: 1px solid var(--border); }
.contact-card h4 { font-size: 13px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.contact-card p { font-size: 12px; color: var(--text2); line-height: 1.65; margin-bottom: 10px; }
.contact-card a { font-size: 12px; font-weight: 700; color: var(--blue); text-decoration: none; }

/* ==========================================================================
   Training Centre / Downloads — category sections & link list items.
   Originally defined inline in training-centre.html / downloads.html;
   centralised here since both pages, plus the Tools/Job Fairs archives,
   share this pattern. Base values follow training-centre.html (the
   fuller original); downloads.html's slightly denser overrides are
   scoped under body.page-downloads below.
   ========================================================================== */
.cat-section { margin-bottom: 28px; display: none; }
.cat-section.visible { display: block; }
.cat-header { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 10px; font-size: 13px; font-weight: 800; color: #fff; }
.link-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; align-content: start; }
@media (max-width: 700px) { .link-list { grid-template-columns: 1fr; } }
.link-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); text-decoration: none; transition: all .13s; }
.link-item:hover { border-color: var(--blue); background: var(--bg-info); transform: translateX(2px); text-decoration: none; }
.li-icon { font-size: 15px; width: 24px; text-align: center; flex-shrink: 0; }
.li-body { flex: 1; min-width: 0; }
.li-title { font-size: 12.5px; font-weight: 600; color: var(--text); }
.li-meta { font-size: 10px; color: var(--text3); }
.li-tags { display: flex; gap: 4px; align-items: center; flex-shrink: 0; }
.ytag { font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 20px; }
.ytag-yt { background: #fef0ee; color: #cc0000; }
.ytag-free { background: var(--bg-success); color: var(--green); }
.ytag-exam { background: var(--bg-purple); color: #7c3aed; }
.ytag-cert { background: var(--bg-warn); color: #c87800; }
.ytag-course { background: var(--bg-info); color: var(--blue); }
.ytag-tool { background: var(--bg-info); color: var(--blue); }
.ytag-paid { background: var(--bg-warn); color: #c87800; }

/* Downloads page uses slightly denser spacing for its link items. */
body.page-template-page-downloads .cat-section { margin-bottom: 24px; }
body.page-template-page-downloads .cat-header { gap: 9px; padding: 9px 13px; font-size: 12.5px; }
body.page-template-page-downloads .li-icon { font-size: 14px; width: 22px; }
body.page-template-page-downloads .li-title { font-size: 12px; }
body.page-template-page-downloads .link-item { padding: 7px 11px; }

/* ==========================================================================
   Job Centre — job cards, CV/download cards, cover letter generator,
   job fair finder. Originally defined inline in job-centre.html.
   ========================================================================== */
.banner-search { display: flex; max-width: 460px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.18); margin-top: 14px; }
.banner-search input { flex: 1; border: none; outline: none; padding: 9px 12px; font-size: 12px; font-family: inherit; color: #080c28; }
.banner-search input.loc { width: 100px; border-left: 1px solid var(--border); }
.banner-search button { background: var(--blue); color: #fff; border: none; padding: 9px 16px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; }
.banner-search button:hover { background: #0d5ae0; }

.stats { display: flex; background: var(--blue); }
.ss { flex: 1; padding: 10px 12px; text-align: center; border-right: 1px solid rgba(255,255,255,.15); }
.ss:last-child { border-right: none; }
.ss .n { font-size: 13px; font-weight: 900; color: #fff; }
.ss .l { font-size: 9px; color: rgba(255,255,255,.7); }

.job-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; align-content: start; margin-bottom: 10px; }
.job-list .job-card:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - 5px); }
@media (max-width: 700px) { .job-list { grid-template-columns: 1fr; } .job-list .job-card:last-child:nth-child(odd) { grid-column: 1; max-width: 100%; } }

/* Archive page (/jobs/) — always 12 per page (4 rows × 3 cols = no gaps) */
.job-archive-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; align-content: start; margin-bottom: 20px; }
@media (max-width: 900px) { .job-archive-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .job-archive-grid { grid-template-columns: 1fr; } }

/* Make job-card slightly more compact on the archive grid */
.job-archive-grid .job-card { padding: 10px 12px; }
.job-archive-grid .jlogo { width: 30px; height: 30px; font-size: 14px; }
.job-archive-grid .jtitle { font-size: 12px; }
.job-archive-grid .jmeta { font-size: 10.5px; margin-bottom: 3px; }
.job-archive-grid .jcta { font-size: 10px; font-weight: 700; color: var(--blue); }
.jtag { font-size: 9px; font-weight: 600; padding: 2px 7px; border-radius: 20px; background: var(--bg); color: #4a5a7a; }
.jtag.b { background: var(--bg-info); color: var(--blue); }
.jtag.g { background: var(--bg-success); color: var(--green); }
.jtag.r { background: var(--bg-danger); color: var(--red); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.grid3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }

.dl-card { display: flex; gap: 9px; background: #fff; border-radius: var(--radius); padding: 11px; border: 1px solid var(--border); transition: all .15s; }
.dl-card:hover { border-color: var(--blue); }
.dl-ico { width: 34px; height: 34px; border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; }
.dl-name { font-size: 12px; font-weight: 800; color: var(--text); margin-bottom: 1px; }
.dl-desc { font-size: 10px; color: var(--text2); line-height: 1.45; margin-bottom: 5px; }
.dl-foot { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.dl-btn { font-size: 10px; font-weight: 700; color: var(--blue); margin-left: auto; text-decoration: none; padding: 3px 8px; border-radius: 5px; background: var(--bg-info); }
.dl-btn:hover { background: var(--blue); color: #fff; text-decoration: none; }

.cl-box, .fair-finder { background: #fff; border-radius: var(--radius-lg); padding: 18px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.cl-box h2, .fair-finder h2 { font-size: 14px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.cl-box > p, .fair-finder > p { font-size: 11.5px; color: var(--text2); margin-bottom: 14px; }
.cl-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.cl-row > div { flex: 1; min-width: 170px; }
.cl-row label { display: block; font-size: 10.5px; font-weight: 700; color: var(--text2); margin-bottom: 4px; }
.cl-row input, .cl-row select { width: 100%; padding: 8px 11px; border: 1.5px solid var(--border); border-radius: 7px; font-size: 12.5px; font-family: inherit; color: var(--text); outline: none; }
.cl-row input:focus, .cl-row select:focus { border-color: var(--blue); }
.cl-generate { background: var(--blue); color: #fff; border: none; padding: 9px 18px; border-radius: 7px; font-size: 12.5px; font-weight: 700; cursor: pointer; font-family: inherit; }
.cl-generate:hover { background: #0d5ae0; }
.cl-output { margin-top: 14px; background: #f8faff; border: 1px solid var(--border); border-radius: 8px; padding: 14px; font-size: 12.5px; line-height: 1.7; color: var(--text2); white-space: pre-wrap; display: none; }
.cl-output.show { display: block; }
.cl-actions { display: flex; gap: 7px; margin-top: 8px; }
.cl-actions button { font-size: 10.5px; font-weight: 700; padding: 5px 11px; border-radius: 6px; cursor: pointer; border: 1.5px solid var(--blue); background: #fff; color: var(--blue); font-family: inherit; }
.cl-actions button:hover { background: var(--blue); color: #fff; }

.fair-search { display: flex; max-width: 340px; background: #f4f7fc; border: 2px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 14px; }
.fair-search:focus-within { border-color: var(--blue); }
.fair-search input { flex: 1; border: none; outline: none; padding: 9px 12px; font-size: 12.5px; font-family: inherit; background: transparent; color: var(--text); text-transform: uppercase; }
.fair-search button { background: var(--blue); color: #fff; border: none; padding: 9px 14px; font-size: 11px; font-weight: 700; cursor: pointer; font-family: inherit; }

.fair-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1.5px solid var(--border); }
.fair-card.nearest { border-color: var(--green); }
.fair-top { padding: 11px 12px 8px; display: flex; gap: 9px; }
.fair-date { background: #0d1545; border-radius: 6px; padding: 5px 8px; text-align: center; flex-shrink: 0; min-width: 38px; }
.fd { font-size: 14px; font-weight: 900; color: #fff; line-height: 1; }
.fm { font-size: 8px; font-weight: 700; color: #4d9fff; }
.fair-name { font-size: 11.5px; font-weight: 800; color: var(--text); margin-bottom: 1px; }
.fair-org { font-size: 9.5px; color: var(--text2); }
.fair-loc { font-size: 9.5px; color: var(--text3); }
.fair-bot { padding: 6px 12px; background: #f8faff; border-top: 1px solid #eef1f8; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.fair-btn { font-size: 9.5px; font-weight: 700; color: #7c3aed; margin-left: auto; text-decoration: none; padding: 3px 8px; border-radius: 5px; background: var(--bg-purple); }
.fair-dist { font-size: 8.5px; font-weight: 800; color: var(--green); background: var(--bg-success); padding: 2px 6px; border-radius: 6px; }

@media (max-width: 768px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .ss { min-width: 50%; }
  .stats { flex-wrap: wrap; }
}

/* ==========================================================================
   Homepage — hero, jobs ticker, feature grid, dynamic news/jobs boxes.
   Originally defined inline in index.html.
   ========================================================================== */
.hero { background: linear-gradient(160deg,#060920,#0d1545 55%,#090d28); padding: 36px 20px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 260px 260px at 12% 50%, rgba(26,108,255,.1), transparent 70%), radial-gradient(ellipse 240px 240px at 88% 50%, rgba(26,108,255,.1), transparent 70%); pointer-events: none; }
.hero-inner { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; gap: 28px; position: relative; z-index: 1; }
.hero-left { flex: 1; min-width: 0; }
.hero-eyebrow { font-size: 10.5px; color: #4d9fff; font-weight: 600; letter-spacing: .05em; margin-bottom: 11px; display: flex; align-items: center; gap: 7px; }
.hero-eyebrow::before, .hero-eyebrow::after { content: ''; flex: 0 0 24px; height: 1px; background: rgba(77,159,255,.3); }
.hero h1 { font-size: 24px; font-weight: 900; color: #fff; line-height: 1.22; margin-bottom: 8px; }
.hero-tag { font-size: 12px; color: rgba(255,255,255,.68); margin-bottom: 18px; max-width: 420px; line-height: 1.6; }
.hero-btns { display: flex; gap: 9px; margin-bottom: 20px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 0; }
.hstat { padding-right: 16px; margin-right: 16px; border-right: 1px solid rgba(255,255,255,.1); }
.hstat:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.hstat .n { font-size: 17px; font-weight: 900; color: var(--amber); }
.hstat .l { font-size: 9.5px; color: rgba(255,255,255,.35); }

.hero-card { width: 196px; flex-shrink: 0; background: rgba(255,255,255,.05); border: 1px solid rgba(100,130,255,.25); border-radius: 11px; padding: 13px; animation: float 4s ease-in-out infinite; }
.hc-title { font-size: 9.5px; font-weight: 700; color: #4d9fff; margin-bottom: 9px; text-transform: uppercase; letter-spacing: .08em; }
.hc-item { display: flex; align-items: center; gap: 7px; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.05); border-radius: 8px; transition: background .15s, padding-left .15s; }
.hc-item:last-child { border-bottom: none; }
.hc-item:hover { background: rgba(255,255,255,.06); padding-left: 6px; }
.hc-dot { width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 10px; font-weight: 800; }
.hc-name { font-size: 10.5px; color: #fff; font-weight: 600; }
.hc-sub { font-size: 9.5px; color: rgba(255,255,255,.32); }

/* "Writing" / typewriter effect on the homepage Popular Career Paths
   card — text appears to type itself out, then shows a soft blinking
   cursor, then is invisibly reset for the next time it scrolls into
   view. Pure CSS, no JS, so it never affects page performance. */
.hc-typewriter {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,.4);
  width: 0;
  animation:
    bits-typewriter 1.8s steps(18, end) forwards,
    bits-caret-blink 0.8s step-end infinite;
}
.hc-typewriter::before { content: attr(data-text); }
.hc-item:nth-child(1) .hc-typewriter { animation-delay: 0.2s, 0.2s; }
.hc-item:nth-child(2) .hc-typewriter { animation-delay: 0.5s, 0.5s; }
.hc-item:nth-child(3) .hc-typewriter { animation-delay: 0.8s, 0.8s; }
.hc-item:nth-child(4) .hc-typewriter { animation-delay: 1.1s, 1.1s; }
.hc-item:nth-child(5) .hc-typewriter { animation-delay: 1.4s, 1.4s; }
@keyframes bits-typewriter {
  from { width: 0; }
  to   { width: 100%; }
}
@keyframes bits-caret-blink {
  50% { border-color: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .hc-typewriter {
    animation: none;
    width: auto;
    border-right: none;
  }
}

.jobs-ticker { background: #f6faff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.jt-outer { max-width: var(--max-w); margin: 0 auto; overflow: hidden; }
.jt-track { display: flex; animation: ticker 28s linear infinite; width: max-content; }
.jt-track:hover { animation-play-state: paused; }
.jt-item { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-right: 1px solid #e0ecf8; white-space: nowrap; text-decoration: none; transition: background .15s; }
.jt-item:hover { background: #edf3ff; text-decoration: none; }
.jt-ico { width: 20px; height: 20px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 10px; }
.jt-lbl { font-size: 10.5px; font-weight: 600; color: var(--text); }

.feat-section { max-width: var(--max-w); margin: 0 auto; padding: 28px 20px; }
.feat-eyebrow { font-size: 10px; font-weight: 800; color: var(--blue); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.feat-rule { height: 3px; width: 36px; background: var(--blue); border-radius: 2px; margin-bottom: 10px; }
.feat-title { font-size: 17px; font-weight: 800; color: var(--text); margin-bottom: 3px; }
.feat-sub { font-size: 11.5px; color: var(--text2); margin-bottom: 16px; }
.feat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.feat-card { background: #fff; border-radius: 10px; padding: 14px; cursor: pointer; border: 1.5px solid var(--border); border-top: 4px solid transparent; transition: all .18s; text-decoration: none; display: block; }
.feat-card:hover { transform: translateY(-4px); text-decoration: none; }
.feat-card.c-red { border-top-color: var(--red); }
.feat-card.c-grn { border-top-color: var(--green); }
.feat-card.c-blu { border-top-color: var(--blue); }
.feat-card.c-amb { border-top-color: var(--amber); }
.feat-card:hover.c-red { box-shadow: 0 10px 26px rgba(221,41,16,.16); }
.feat-card:hover.c-grn { box-shadow: 0 10px 26px rgba(45,168,10,.16); }
.feat-card:hover.c-blu { box-shadow: 0 10px 26px rgba(26,108,255,.16); }
.feat-card:hover.c-amb { box-shadow: 0 10px 26px rgba(232,160,0,.16); }
.feat-card .feat-ico { transition: transform .18s; }
.feat-card:hover .feat-ico { transform: scale(1.1); }
.feat-ico { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; margin-bottom: 9px; font-size: 16px; }
.feat-card.c-red .feat-ico { background: var(--bg-danger); color: var(--red); }
.feat-card.c-grn .feat-ico { background: var(--bg-success); color: var(--green); }
.feat-card.c-blu .feat-ico { background: var(--bg-info); color: var(--blue); }
.feat-card.c-amb .feat-ico { background: var(--bg-warn); color: #c87800; }
.feat-card h3 { font-size: 12px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.feat-card p { font-size: 10.5px; color: var(--text2); line-height: 1.55; }
.feat-link { font-size: 10.5px; font-weight: 700; margin-top: 8px; }
.feat-card.c-red .feat-link { color: var(--red); }
.feat-card.c-grn .feat-link { color: var(--green); }
.feat-card.c-blu .feat-link { color: var(--blue); }
.feat-card.c-amb .feat-link { color: #c87800; }

.news-section { max-width: var(--max-w); margin: 0 auto; padding: 0 20px 24px; }
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nbox { background: #fff; border-radius: 11px; overflow: hidden; box-shadow: var(--shadow); }
.nbox-hdr { padding: 10px 13px; display: flex; align-items: center; gap: 8px; }
.nbox-hdr h3 { font-size: 12px; font-weight: 800; color: #fff; flex: 1; }
.nbox-hdr-cyber { background: linear-gradient(90deg,#1a0505,#2e0a0a); }
.nbox-hdr-events { background: linear-gradient(90deg,#05101a,#0a2040); }
.nbox-chip { font-size: 8.5px; font-weight: 800; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.18); color: #fff; }
.nbox-dot { width: 6px; height: 6px; border-radius: 50%; animation: blink 1.4s infinite; }
.nbox-item { display: flex; gap: 9px; padding: 8px 12px; border-bottom: 1px solid #f2f4fa; transition: background .15s, padding-left .15s; border-radius: 6px; }
.nbox-item:last-child { border-bottom: none; }
a.nbox-item:hover { background: #f4f7fc; padding-left: 16px; text-decoration: none; }
.nitem-ico { width: 28px; height: 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 13px; }
.nitem-title { font-size: 10.5px; font-weight: 700; color: var(--text); line-height: 1.4; }
.nitem-meta { font-size: 9px; color: var(--text3); margin-top: 2px; }

@media (max-width: 768px) {
  .hero-inner { flex-direction: column; text-align: center; gap: 20px; }
  .hero-eyebrow { justify-content: center; }
  .hero-tag { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-card { width: 100%; max-width: 280px; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .feat-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Contact page — form, contact cards, success box.
   Originally defined inline in contact.html.
   ========================================================================== */
.contact-wrap { max-width: 680px; margin: 0 auto; }
.form-box { background: #fff; border-radius: 14px; padding: 28px; border: 1px solid var(--border); box-shadow: 0 2px 14px rgba(0,0,0,.06); margin-bottom: 18px; }
.form-box h2 { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 5px; }
.form-box > p { font-size: 12px; color: var(--text2); margin-bottom: 20px; }
.form-row { display: flex; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.form-row > div { flex: 1; min-width: 220px; }
.form-row label { display: block; font-size: 11px; font-weight: 700; color: #4a5a7a; margin-bottom: 5px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 13px; font-family: inherit; color: var(--text); outline: none;
  transition: border-color .15s; background: #fff;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--blue); }
.form-row textarea { resize: vertical; min-height: 130px; }
.form-submit {
  background: var(--blue); color: #fff; border: none; padding: 12px 26px; border-radius: 8px;
  font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: background .15s; display: inline-flex; align-items: center; gap: 8px;
}
.form-submit:hover { background: #0d5ae0; }
.form-submit:disabled { opacity: .6; cursor: not-allowed; }
.form-note { font-size: 11px; color: var(--text3); margin-top: 10px; }

.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.ccard { background: #fff; border-radius: 12px; padding: 20px; border: 1px solid var(--border); box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.ccard .ico { font-size: 28px; margin-bottom: 10px; }
.ccard h4 { font-size: 13px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.ccard p { font-size: 12px; color: var(--text2); line-height: 1.65; margin-bottom: 10px; }
.ccard a { font-size: 12px; font-weight: 700; color: var(--blue); text-decoration: none; }
.ccard a:hover { text-decoration: underline; }

.success-box { display: none; background: var(--bg-success); border: 1.5px solid var(--green); border-radius: 12px; padding: 20px; text-align: center; margin-bottom: 18px; }
.success-box .icon { font-size: 32px; margin-bottom: 8px; }
.success-box h3 { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 5px; }
.success-box p { font-size: 12px; color: var(--text2); margin: 0; }

@media (max-width: 600px) {
  .contact-cards { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
}

@media (max-width: 768px) {
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .pillars-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   BITS Groq AI Tools — Cover Letter Generator & Free Courses Tool
   ========================================================================== */

/* ── Shared AI section header ── */
.bits-ai-section { background:#fff; border-radius:12px; padding:20px 22px; border:1px solid var(--border); box-shadow:var(--shadow); margin-bottom:22px; }
.bits-ai-head { display:flex; align-items:center; gap:9px; margin-bottom:5px; flex-wrap:wrap; }
.bits-ai-pulse { width:7px; height:7px; border-radius:50%; background:#7c3aed; flex-shrink:0; animation:bits-pulse 1.8s infinite; }
.bits-ai-pulse.green { background:#2da80a; }
@keyframes bits-pulse { 0%,100%{opacity:1}50%{opacity:.3} }
.bits-ai-section-title { font-size:14px; font-weight:800; color:var(--text); margin:0; }
.bits-ai-groq-badge { font-size:9px; font-weight:700; padding:2px 8px; border-radius:12px; background:rgba(124,58,237,.12); color:#7c3aed; margin-left:auto; text-transform:uppercase; letter-spacing:.04em; }
.bits-ai-groq-badge.green { background:rgba(45,168,10,.12); color:#2da80a; }
.bits-ai-section p { font-size:12px; color:var(--text2); margin:0 0 14px; line-height:1.6; }

/* ── Cover letter form ── */
.bits-cl-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:12px; }
@media(max-width:640px) { .bits-cl-row { grid-template-columns:1fr; } }
.bits-cl-row label { display:block; font-size:10.5px; font-weight:700; color:var(--text2); margin-bottom:4px; }
.bits-cl-row input, .bits-cl-row textarea {
  width:100%; padding:9px 12px; border:1.5px solid var(--border); border-radius:8px;
  font-size:12.5px; font-family:inherit; color:var(--text); outline:none;
  transition:border-color .15s; background:#fff; resize:vertical;
}
.bits-cl-row input:focus, .bits-cl-row textarea:focus { border-color:var(--blue); }
.bits-cl-btn { display:inline-flex; align-items:center; gap:7px; background:var(--blue); color:#fff; border:none; padding:10px 20px; border-radius:8px; font-size:13px; font-weight:700; cursor:pointer; font-family:inherit; transition:background .15s; margin-bottom:14px; }
.bits-cl-btn:hover { background:#0d5ae0; }
.bits-cl-btn:disabled { opacity:.6; cursor:not-allowed; }

/* ── Cover letter output ── */
.bits-cl-output { background:#f8faff; border:1px solid var(--border); border-radius:10px; padding:16px 18px; }
.bits-cl-text { font-size:13px; line-height:1.85; color:#2a3a5a; white-space:pre-wrap; word-break:break-word; }
.bits-cl-actions { display:flex; gap:8px; margin-top:12px; flex-wrap:wrap; align-items:center; }
.bits-cl-action { display:inline-flex; align-items:center; gap:6px; font-size:11px; font-weight:700; padding:6px 13px; border-radius:6px; border:1.5px solid var(--blue); background:#fff; color:var(--blue); cursor:pointer; font-family:inherit; transition:background .13s,color .13s; }
.bits-cl-action:hover { background:var(--blue); color:#fff; }
.bits-cl-copy-notice { font-size:10.5px; font-weight:700; color:var(--green); display:none; }

/* ── Courses tool ── */
.bits-courses-cats { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:14px; }
.bits-cat-btn { display:inline-flex; align-items:center; gap:6px; padding:7px 14px; border-radius:20px; border:2px solid var(--cat-clr, var(--blue)); background:#fff; color:var(--text); font-size:12px; font-weight:700; cursor:pointer; font-family:inherit; transition:background .13s,color .13s,transform .1s; }
.bits-cat-btn:hover, .bits-cat-btn.active { background:var(--cat-clr,var(--blue)); color:#fff; transform:translateY(-1px); }
.bits-courses-loading { display:flex; align-items:center; gap:9px; padding:12px 0; color:var(--text2); font-size:12px; }
.bits-spinner { width:18px; height:18px; border:2px solid var(--border); border-top-color:var(--blue); border-radius:50%; animation:bits-spin .7s linear infinite; flex-shrink:0; }
@keyframes bits-spin { to{transform:rotate(360deg)} }
.bits-courses-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:6px; }
@media(max-width:600px) { .bits-courses-grid { grid-template-columns:1fr; } }
.bits-course-card { display:flex; flex-direction:column; gap:4px; background:#f8faff; border:1px solid var(--border); border-radius:9px; padding:12px 14px; text-decoration:none; transition:border-color .13s,box-shadow .13s,transform .1s; }
.bits-course-card:hover { border-color:var(--blue); box-shadow:0 4px 14px rgba(26,108,255,.1); transform:translateY(-2px); text-decoration:none; }
.bits-course-title { font-size:12.5px; font-weight:700; color:var(--text); line-height:1.3; }
.bits-course-provider { font-size:10.5px; font-weight:600; color:var(--blue); }
.bits-course-meta { display:flex; gap:5px; flex-wrap:wrap; margin-top:2px; }
.bits-ctag { font-size:9px; font-weight:700; padding:2px 7px; border-radius:10px; background:#e4f3ff; color:var(--blue); }
.bits-ctag.free { background:var(--bg-success); color:var(--green); }
.bits-course-why { font-size:10.5px; color:var(--text2); line-height:1.5; margin-top:2px; }
.bits-course-go { font-size:10.5px; font-weight:700; color:var(--blue); margin-top:auto; padding-top:5px; }
