:root{
  --blue:#1247a6;
  --blue2:#0e3f96;
  --text:#0b0b0b;
  --muted:#333;
  --border:#bfc9da;
  --bg:#ffffff;
  --max:1100px;

  /* Side-panel width on desktop (shrinks on smaller screens below) */
  --panelW: 320px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Arial, Helvetica, sans-serif;
  color:var(--text);
  background:var(--bg);
}

/* =========================
   TOP RIGHT BUTTONS
   ========================= */
.top-actions{
  position:fixed;
  top:14px;
  right:18px;
  z-index:50;
  display:flex;
  gap:12px;
}
.top-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  background:var(--blue);
  color:#fff;
  font-weight:700;
  text-decoration:none;
  border-radius:3px;
  box-shadow:0 1px 0 rgba(0,0,0,.12);
}
.top-btn:hover{background:var(--blue2)}

/* =========================
   HOME (INDEX)
   ========================= */
.home-wrap{width:100%}

/* Side network panels (flush to edges, repeat vertically) */
.home-network{
  position:absolute;
  top:0;
  bottom:0;
  width:var(--panelW);
  pointer-events:none;
  z-index:1;

  background-repeat:repeat-y;
  background-position:top center;
  background-size:var(--panelW) auto;
}
.home-network--left{
  left:0;
  background-image:url("../img/home-network-left.png");
  background-position:left top;
}
.home-network--right{
  right:0;
  background-image:url("../img/home-network-right.png");
  background-position:right top;
}
@supports (inset: 0){
  .home-network--left{ inset:0 auto 0 0; }
  .home-network--right{ inset:0 0 0 auto; }
}

/* HERO */
.home-hero{
  position:relative;
  padding:20px 0 8px;
  overflow:hidden;
  background:#fff;
}

/* IMPORTANT: content column must never sit under side panels */
.home-hero-inner{
  width:min(calc(100% - (2 * var(--panelW)) - 40px), var(--max));
  margin:0 auto;
  text-align:center;
  position:relative;
  z-index:2;
}

.home-hero-img{
  width:100%;
  max-width:880px;
  margin:0 auto;
  display:block;
}

.home-hero-text{margin-top:16px}

/* Upper part of page */
.home-hero-kicker{
  color:var(--blue);
  font-weight:900;
  font-size:24px;
  margin:6px 0 10px;
}

.home-hero-title{
  color:var(--blue);
  font-weight:900;
  font-size:38px;       /* final size */
  line-height:1.1;
  margin:0 0 12px;
}

.home-hero-par{
  margin:0 auto 10px;
  max-width:820px;
  font-size:18px;
  color:#222;
  line-height:1.6;
}

.home-hero-cta{margin:16px 0 10px}

.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 28px;
  border-radius:999px;
  background:var(--blue);
  color:#fff;
  font-weight:900;
  text-decoration:none;
  letter-spacing:.4px;
}
.pill:hover{background:var(--blue2)}

/* LOWER SECTION */
.home-lower{
  position:relative;
  padding:18px 0 40px;
  overflow:hidden;
  background:#fff;
}

/* IMPORTANT: content column must never sit under side panels */
.home-lower-inner{
  width:min(calc(100% - (2 * var(--panelW)) - 40px), var(--max));
  margin:0 auto;
  display:grid;
  grid-template-columns: 1.25fr .75fr; /* balanced; text gets priority */
  gap:34px;
  align-items:start;
  position:relative;
  z-index:2;
}

.home-block-title{
  font-weight:800;
  margin:10px 0 4px;
  font-size:16px;
}
.home-block-sub{
  font-weight:800;
  margin:0 0 18px;
  font-size:15px;
}

/* Bottom part */
.home-h{
  font-weight:800;
  margin:14px 0 6px;
  font-size:15px;
}
.home-p{
  margin:0 0 12px;
  font-size:15px;
  line-height:1.6;
  color:#222;
}
.home-ul{
  margin:0 0 12px;
  padding-left:18px;
  font-size:15px;
  line-height:1.6;
}
.home-ul li{margin:4px 0}

/* Learn more row + button aligned to text */
.learn-more{
  display:flex;
  align-items:center;
  gap:10px;
  margin:10px 0 18px;
  flex-wrap:wrap;
}
.learn-more-text{
  font-size:15px;
  font-weight:800;
  color:#222;
}
.mini-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 12px;
  background:var(--blue);
  color:#fff;
  font-weight:800;
  text-decoration:none;
  border-radius:4px;
  font-size:14px;
  line-height:1;
}
.mini-btn:hover{background:var(--blue2)}

/* Circle collage (desktop only: positioned within the right column) */
.home-right{position:relative; min-height:520px}

.circle-collage{
  position:relative;
  width:100%;
  height:560px; /* enough room to avoid collisions */
}

/* crisp edge */
.circle{
  position:absolute;
  border-radius:50%;
  overflow:hidden;
  background:#fff;
  border:6px solid #fff;
  box-shadow:0 2px 0 rgba(0,0,0,.06);
}
.circle img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Make circles smaller + closer to the right edge so they do not touch text */
.circle--top{
  width:200px;
  height:200px;
  top:10px;
  right:0px;
}
.circle--mid{
  width:280px;
  height:280px;
  top:165px;
  right:30px;
}
.circle--bot{
  width:215px;
  height:215px;
  top:380px;
  right:0px;
}

/* =========================
   SPLIT PAGES (ABOUT + REGISTER)
   ========================= */
.split-wrap{
  display:grid;
  grid-template-columns: 38% 62%;
  min-height:100vh;
}

.leftpanel{
  display:grid;
  grid-template-rows: 1fr 1fr;
  height:100vh;
  position:sticky;
  top:0;
}
.leftpanel-top{
  background:#000 url("../img/leftpanel-network.png") center/cover no-repeat;
}
.leftpanel-bottom--about{
  background:#000 url("../img/leftpanel-photo.jpg") center/cover no-repeat;
}
.leftpanel-bottom--register{
  background:#000 url("../img/leftpanel-photo-register.jpg") center/cover no-repeat;
}

.content{
  padding:34px 40px 60px;
  border-left:1px solid #000;
}
.page-title{
  margin:0 0 18px;
  color:var(--blue);
  font-weight:900;
  font-size:34px;
  padding-bottom:10px;
  border-bottom:2px solid #4aa2df;
}
.p{
  margin:0 0 14px;
  font-size:14px;
  line-height:1.75;
  color:#222;
  max-width:900px;
}

.instructor{
  display:grid;
  grid-template-columns: 86px 1fr;
  gap:16px;
  align-items:start;
  margin-top:26px;
}
.instructor-avatar{
  width:86px;
  height:86px;
  border-radius:50%;
  background:#ddd url("../img/instructor.jpg") center/cover no-repeat;
}
.instructor-title{
  color:var(--blue);
  font-weight:900;
  margin:4px 0 6px;
  font-size:15px;
}

.form-link{
  display:inline-block;
  font-size:16px;
  color:#5a2aa5;
  text-decoration:underline;
  font-weight:700;
}

/* Embedded Registration Form */
.form-embed{
  width:100%;
  max-width:980px;
  background:#fff;
  border:1px solid #d7d7d7;
  border-radius:6px;
  overflow:hidden;
}
.form-embed iframe{
  width:100%;
  height:78vh;
  min-height:780px;
  border:0;
  display:block;
}

/* =========================
   RESPONSIVE BEHAVIOUR
   ========================= */

/* Shrink side panels progressively on smaller desktops/laptops */
@media (max-width: 1500px){
  :root{ --panelW: 260px; }
}
@media (max-width: 1350px){
  :root{ --panelW: 220px; }
}
@media (max-width: 1200px){
  :root{ --panelW: 180px; }

  /* Give text more room; collage narrower */
  .home-lower-inner{
    grid-template-columns: 1.4fr .6fr;
    gap:26px;
  }

  /* Slightly smaller circles at laptop widths */
  .circle-collage{ height:520px; }
  .circle--top{ width:185px; height:185px; right:0; top:10px; }
  .circle--mid{ width:245px; height:245px; right:18px; top:155px; }
  .circle--bot{ width:200px; height:200px; right:0; top:335px; }
}

/* Collapse the HOME lower section to one column and put circles UNDER text */
@media (max-width: 980px){
  :root{ --panelW: 140px; } /* panels can stay but remain safe */
  .home-lower-inner{
    grid-template-columns: 1fr;
    gap:22px;
  }
  .home-right{ min-height:auto; }

  /* Circles become a clean vertical stack BELOW the text */
  .circle-collage{
    position:static;
    height:auto;
    display:flex;
    flex-direction:column;
    gap:18px;
    align-items:center;
    padding-top:6px;
  }
  .circle{
    position:static;
  }
  .circle--top{ width:220px; height:220px; }
  .circle--mid{ width:290px; height:290px; }
  .circle--bot{ width:240px; height:240px; }
}

/* PHONE: side panels off, full-width content, circles already below text */
@media (max-width: 720px){
  :root{ --panelW: 0px; }

  .top-actions{top:10px; right:10px; gap:10px}
  .top-btn{padding:9px 12px; font-size:14px}

  .home-network{display:none}

  .home-hero-inner,
  .home-lower-inner{
    width:min(100% - 24px, var(--max));
  }

  .home-hero-kicker{font-size:20px}
  .home-hero-title{font-size:26px}
  .home-hero-par{font-size:14px}

  .home-h{font-size:14px}
  .home-p{font-size:14px}
  .home-ul{font-size:14px}

  .split-wrap{grid-template-columns: 1fr}
  .leftpanel{position:relative; height:auto; grid-template-rows: 240px 240px}
  .content{border-left:none; padding:22px 18px 40px}
  .page-title{font-size:28px}

  .instructor{grid-template-columns: 70px 1fr}
  .instructor-avatar{width:70px;height:70px}

  .form-embed iframe{
    height:84vh;
    min-height:820px;
  }
}

/* Very small phones: slightly smaller circle stack */
@media (max-width: 420px){
  .circle--top{ width:180px; height:180px; }
  .circle--mid{ width:240px; height:240px; }
  .circle--bot{ width:200px; height:200px; }

  .home-hero-inner,
  .home-lower-inner{
    width:min(100% - 18px, var(--max));
  }
}


/* Make bullet lists in About/Register pages match paragraph text */
.content ul,
.content li{
  font-size: 14px;
  line-height: 1.75;
  color: #222;
}

.content ul{
  margin: 0 0 14px;
  padding-left: 18px;
}

.content li{
  margin: 4px 0;
}

