/*
Theme Name: CIONET Academy
Theme URI: https://www.cionet.com
Author: CIONET Nederland
Author URI: https://www.cionet.com
Description: Custom theme voor CIONET Nederland — algemene informatie over CIONET plus de CIONET Academy met de leergangen Next Tech Leader, Security Leadership, CIO als Commissaris en Quantum Impact for Corporates.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: cionet-academy
*/

/* ==========================================================================
   0. Reset & base
   ========================================================================== */
:root {
  --navy: #2C3540;
  --navy-dark: #23303B;
  --orange: #EE7623;
  --orange-light: #f08a3c;
  --blue: #4E7DA6;
  --blue-light: #6F9CC4;
  --red: #B7302A;
  --purple: #6B4FA0;
  --bg-light: #F7F5F2;
  --text: #2b2b2b;
  --text-muted: #55595e;
  --border: #E7E4DF;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-weight: 700; color: var(--navy); line-height: 1.2; margin: 0 0 0.5em 0; }
p { margin: 0 0 1em 0; }
ul { margin: 0; padding: 0; }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-family: inherit;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--orange-light); text-decoration: none; color: #fff; }
.btn.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.btn.btn-outline:hover { background: rgba(255,255,255,0.15); }
.btn.btn-navy { background: var(--navy); }
.btn.btn-navy:hover { background: var(--navy-dark); }

.dot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  width: 22px;
}
.dot-grid span {
  width: 6px; height: 6px;
  background: var(--orange);
  border-radius: 1px;
  display: block;
}

/* ==========================================================================
   1. Header
   ========================================================================== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
}
.site-logo .tagline { font-size: 9px; color: #9a9fa5; font-style: italic; display: block; font-weight: 400; }
.main-nav ul { list-style: none; display: flex; gap: 28px; align-items: center; }
.main-nav a { color: var(--navy); font-weight: 600; font-size: 14.5px; }
.main-nav a:hover { color: var(--orange); text-decoration: none; }
.main-nav .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--navy); cursor: pointer; }

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 20px; }
  .main-nav li { width: 100%; padding: 10px 0; border-bottom: 1px solid #f0efec; }
}

/* ==========================================================================
   2. Hero sections
   ========================================================================== */
.hero {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy) 55%, var(--orange));
  color: #fff;
  padding: 90px 0 70px;
}
.hero.hero-compact { padding: 60px 0 50px; }
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  margin-bottom: 14px;
}
.hero h1 { color: #fff; font-size: 40px; max-width: 720px; }
.hero .lead { font-size: 18px; max-width: 620px; color: rgba(255,255,255,0.9); font-weight: 300; }
.hero .hero-actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Program-specific hero accent (set inline per template via --accent) */
.hero.accent-blue { background: linear-gradient(120deg, var(--navy-dark), var(--navy) 55%, var(--blue-light)); }
.hero.accent-red { background: linear-gradient(120deg, var(--navy-dark), var(--navy) 55%, var(--red)); }
.hero.accent-purple { background: linear-gradient(120deg, var(--navy-dark), var(--navy) 55%, var(--purple)); }

/* ==========================================================================
   3. Generic sections
   ========================================================================== */
.section { padding: 64px 0; }
.section.bg-light { background: var(--bg-light); }
.section-title { font-size: 28px; margin-bottom: 10px; }
.section-title .bar {
  display: inline-block;
  width: 4px; height: 22px;
  background: var(--orange);
  margin-right: 10px;
  vertical-align: -3px;
  border-radius: 2px;
}
.section-intro { max-width: 720px; color: var(--text-muted); font-size: 16px; margin-bottom: 36px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.stat-row { display: flex; gap: 20px; flex-wrap: wrap; margin: 30px 0; }
.stat-box {
  background: var(--bg-light);
  border-radius: 6px;
  padding: 20px 22px;
  flex: 1;
  min-width: 130px;
  text-align: center;
}
.stat-box .num { font-size: 26px; font-weight: 700; color: var(--orange); line-height: 1; margin-bottom: 6px; }
.stat-box .lbl { font-size: 12.5px; color: var(--text-muted); line-height: 1.3; }

.tick-list { list-style: none; }
.tick-list li { position: relative; padding-left: 22px; margin-bottom: 10px; color: var(--text-muted); }
.tick-list li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 7px; height: 7px;
  background: var(--orange);
  border-radius: 50%;
}

/* ==========================================================================
   4. Academy overview blocks
   ========================================================================== */
.academy-block {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 26px;
  background: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.academy-block:hover { box-shadow: 0 10px 28px rgba(44,53,64,0.10); transform: translateY(-2px); }
.academy-block .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  background: var(--orange);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
  width: fit-content;
}
.academy-block.accent-blue .tag { background: var(--blue); }
.academy-block.accent-red .tag { background: var(--red); }
.academy-block.accent-purple .tag { background: var(--purple); }
.academy-block h3 { font-size: 19px; margin-bottom: 10px; }
.academy-block p.desc { color: var(--text-muted); font-size: 14.5px; flex-grow: 1; }
.academy-block .meta { font-size: 12.5px; color: #8a8f96; margin: 10px 0 16px; }
.academy-block a.more { font-weight: 700; font-size: 14px; }
.academy-block a.more::after { content: " →"; }

/* ==========================================================================
   5. Program detail page
   ========================================================================== */
.program-meta-strip {
  background: var(--bg-light);
  border-radius: 6px;
  padding: 22px 26px;
  margin: 30px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 700px) { .program-meta-strip { grid-template-columns: 1fr 1fr; } }
.program-meta-strip .m-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--orange); font-weight: 700; margin-bottom: 4px; }
.program-meta-strip .m-value { font-size: 14.5px; color: var(--navy); font-weight: 600; line-height: 1.4; }

.session-list { counter-reset: session; }
.session-item {
  border-top: 3px solid var(--orange);
  padding: 18px 0 22px;
}
.session-item.accent-blue { border-top-color: var(--blue); }
.session-item.accent-red { border-top-color: var(--red); }
.session-item.accent-purple { border-top-color: var(--purple); }
.session-item .s-no { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--orange); text-transform: uppercase; }
.session-item.accent-blue .s-no { color: var(--blue); }
.session-item.accent-red .s-no { color: var(--red); }
.session-item.accent-purple .s-no { color: var(--purple); }
.session-item h4 { font-size: 17px; margin: 6px 0 8px; }
.session-item p { color: var(--text-muted); font-size: 14.5px; margin: 0; }

.pdf-cta {
  margin-top: 40px;
  background: var(--navy);
  border-radius: 8px;
  padding: 34px 36px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.pdf-cta .pc-text h3 { color: #fff; margin-bottom: 6px; font-size: 20px; }
.pdf-cta .pc-text p { color: rgba(255,255,255,0.75); margin: 0; font-size: 14.5px; }
.pdf-cta .pc-icon { font-size: 30px; }

.testimonial-card {
  background: var(--bg-light);
  border-radius: 6px;
  padding: 20px 22px;
  font-style: italic;
  color: var(--navy);
  font-size: 14.5px;
}
.testimonial-card .who { font-style: normal; font-weight: 700; color: var(--orange); font-size: 13px; margin-top: 10px; display: block; }

/* ==========================================================================
   6. Registration form
   ========================================================================== */
.registration-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px;
  max-width: 680px;
}
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-weight: 600; font-size: 14px; color: var(--navy); margin-bottom: 6px; }
.form-row .hint { font-size: 12.5px; color: #8a8f96; margin-top: 4px; }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: #fff;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-grid-2 { grid-template-columns: 1fr; } }
.form-honeypot { position: absolute; left: -9999px; top: -9999px; }
.form-notice {
  padding: 14px 18px;
  border-radius: 5px;
  margin-bottom: 24px;
  font-size: 14.5px;
}
.form-notice.success { background: #e7f5e9; color: #256029; border: 1px solid #b6e0bd; }
.form-notice.error { background: #fbe9e7; color: #a13a2c; border: 1px solid #f3c2ba; }

/* ==========================================================================
   7. Footer
   ========================================================================== */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.8); padding: 50px 0 26px; margin-top: 40px; }
.site-footer .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 34px; }
@media (max-width: 700px) { .site-footer .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 14px; }
.site-footer p, .site-footer a { color: rgba(255,255,255,0.72); font-size: 14px; }
.site-footer a:hover { color: var(--orange); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ==========================================================================
   8. Misc / utility
   ========================================================================== */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
