/* ========== AIT simple theme (DRY/KISS) ========== */
:root{
  --ait-blue: #12459b;
  --ait-lime: #a4c95b;
  --cta-blue: #1b74ff;  /* new: single source for CTA blue */
  --text: #222;
  --muted: #666;
  --bg: #f8fafc;
}

*{ box-sizing: border-box; }
body{ margin:0; font-family: Arial, sans-serif; color:var(--text); background:var(--bg); }

/* ========== Top bar ========== */
.ait-topbar{
  display:flex; align-items:center; gap:12px;
  padding:10px 16px; border-bottom:1px solid #e5e7eb;
  background: var(--ait-blue); color:#fff;
  position:sticky; top:0; z-index:10; flex-wrap: wrap; /* allow wrap on small screens */
}
.ait-logo {
  height: 34px;
  background:#fff; padding:6px; border-radius:6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  display:inline-block; vertical-align:middle; margin-right:10px;
}
.ait-logo--plain { background:transparent; padding:0; border-radius:0; box-shadow:none; }
.nav { margin-left:auto; display:flex; gap:12px; flex-wrap:wrap; }
.nav a { color:#fff; text-decoration:none; opacity:0.9; }
.nav a:hover { opacity:1; }

/* ========== Page container ========== */
.container{ max-width:1100px; margin:20px auto; background:#fff; padding:16px; border:1px solid #e5e7eb; border-radius:8px; }

/* ========== Buttons ========== */
.btn, button{
  background:var(--ait-blue); color:#fff; border:none;
  padding:10px 14px; border-radius:8px; cursor:pointer; text-decoration:none;
  display:inline-block; font-weight:600;
}
.btn:hover, button:hover{ opacity:0.95; }
.btn-primary{ background: var(--cta-blue); }
.btn-outline{
  background: transparent; color: var(--ait-blue); border: 1.5px solid var(--ait-blue);
}
.btn-small { padding: 8px 12px; }

/* Outline buttons should be white in the HERO only */
.hero .btn-outline{ color:#fff; border-color:rgba(255,255,255,0.9); }

/* ========== Chips (one definition) ========== */
.chips{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{
  display:inline-block; padding:8px 10px; border:1px solid #e5e7eb;
  border-radius:999px; background:#fff; text-decoration:none; font-size:14px;
}
.chip:hover{ background:#f5f7fb; border-color:#c7d2fe; }

/* ========== Tables ========== */
table{ width:100%; border-collapse:collapse; background:#fff; }
th,td{ border:1px solid #e5e7eb; padding:8px; text-align:left; }
th{ background:#f3f4f6; }
.mini{ width:100%; border-collapse: collapse; }
.mini th, .mini td{ border:1px solid #e5e7eb; padding:6px; }
.mini th{ background:#f8fafc; }

/* ========== Cards (single definition) ========== */
.card{
  background:#fff; border:1px solid #e5e7eb; border-radius:10px; padding:14px;
  display:flex; flex-direction:column; gap:8px;
}
.card--stat .stat__value{ font-size:26px; font-weight:700; }
.card--stat .stat__label{ font-size:14px; margin-top:2px; }
.card-actions { display:flex; gap:8px; margin-top:8px; }

/* ========== Dashboard layout ========== */
.dash-cards{
  display:grid; grid-template-columns: repeat(3, 1fr);
  gap:12px; margin: 10px 0 14px 0;
}
@media (max-width: 900px){ .dash-cards{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .dash-cards{ grid-template-columns: 1fr; } }
.muted{ color:#6b7280; }
.panel{ background:#fff; border:1px solid #e5e7eb; border-radius:10px; margin:10px 0; }
.panel__title{ margin:12px 14px 0 14px; font-size:18px; }
.panel__body{ padding: 10px 14px 14px 14px; }
.progress{ width:100%; height:10px; background:#eef2ff; border-radius:8px; overflow:hidden; }
.progress__bar{ height:100%; background:var(--cta-blue); }
.spacer8{ height:8px; }
.bullets{ margin:0; padding-left:18px; }

/* ========== Forms / Alerts ========== */
.form-card{
  background:#fff; border:1px solid #e5e7eb; border-radius:10px; padding:16px; max-width:520px;
}
.field{ display:block; margin-bottom:12px; }
.field__label{ display:block; font-weight:600; margin-bottom:6px; }
.field__input{
  width:100%; padding:10px 12px; border:1px solid #d1d5db; border-radius:8px; font-size:14px;
}
.field__input:focus{
  outline:none; border-color:var(--cta-blue); box-shadow:0 0 0 3px rgba(27,116,255,.15);
}
.grid-2{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
@media (max-width: 560px){ .grid-2{ grid-template-columns:1fr; } }
.alert{ padding:10px 12px; border-radius:8px; margin-bottom:10px; font-size:14px; }
.alert-error{ background:#fee2e2; color:#7f1d1d; border:1px solid #fecaca; }
.alert-ok{ background:#def7ec; color:#03543f; border:1px solid #bcf0da; }
.form__actions{ display:flex; gap:10px; margin-top:6px; flex-wrap:wrap; }

/* ========== Certificate (web view) ========== */
.cert-box{ border:8px solid var(--ait-blue); padding:24px; position:relative; overflow:hidden; }
.cert-ribbon{ background:var(--ait-lime); padding:6px 10px; display:inline-block; color:#000; }
.small{ color:var(--muted); font-size:12px; }

/* ========== Landing / Hero ========== */
.full-bleed{ width:100vw; margin-left:calc(50% - 50vw); margin-right:calc(50% - 50vw); }
.hero{
  background: linear-gradient(135deg, var(--ait-blue) 0%, #0f3576 60%, #0d2b61 100%);
  color:#fff; padding:40px 16px;
}
.hero__inner{
  max-width:1100px; margin:0 auto; display:grid; grid-template-columns:1.2fr 0.8fr; gap:24px;
}
@media (max-width: 900px){ .hero__inner { grid-template-columns: 1fr; } }
.hero__badge{ display:inline-block; background:var(--ait-lime); color:#000; font-weight:600; padding:6px 10px; border-radius:999px; margin-bottom:12px; }
.hero__title{ margin:8px 0 6px 0; font-size:34px; line-height:1.15; }
.hero__subtitle{ color:#e7eefc; font-size:16px; margin-bottom:18px; }
.hero__cta{ display:flex; gap:10px; flex-wrap:wrap; }
.hero__tiny{ font-size:12px; color:#cfe0ff; margin-top:6px; }
.hero__glass{ backdrop-filter: blur(6px); background: rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.15); border-radius:12px; padding:16px; }
.hero__points{ margin:0; padding-left:18px; }
.hero__points li{ margin:6px 0; }

/* ========== Trust strip ========== */
.trust-strip{ background:#f3f6fb; border-top:1px solid #e5e7eb; padding:16px; margin-top:14px; }
.trust__logos{ display:flex; align-items:center; gap:16px; }
.trust__logo{ height:28px; background:#fff; padding:6px; border-radius:8px; box-shadow:0 2px 4px rgba(0,0,0,.08); }
.trust__bullets{ margin:10px 0 0 0; padding-left:18px; }

/* ========== Accessibility ========== */
@media (prefers-reduced-motion: reduce){ *{ animation:none !important; transition:none !important; } }
:focus-visible{ outline:3px solid var(--cta-blue); outline-offset:2px; }

/* ===== Footer (Gen-AI friendly) ===== */
footer {
  background: #f8fafc;
  border-top: 2px solid var(--ait-blue);
  padding: 20px 16px;
  margin-top: 30px;
  font-size: 14px;
  color: #333;
}

.footer-ai {
  max-width: 1100px; margin: 0 auto 14px auto;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 12px;
}
.footer-ai__form { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.footer-ai__label { grid-column: 1 / -1; font-weight: 600; margin-bottom: -2px; }
.footer-ai__input {
  width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px;
}
.footer-ai__input:focus {
  outline: none; border-color: var(--cta-blue); box-shadow: 0 0 0 3px rgba(27,116,255,.15);
}
.footer-ai__tiny { grid-column: 1 / -1; font-size: 12px; color: #666; }

.footer-inner {
  max-width: 1100px; margin: 0 auto 12px auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.branch h4 { margin: 0 0 8px 0; font-size: 16px; color: var(--ait-blue); }
.branch__line { margin: 3px 0; line-height: 1.4; display: flex; align-items: center; gap: 6px; }
.branch__line .ico { width: 16px; text-align: center; opacity: .8; }
.sep { opacity: .5; margin: 0 6px; }

.footer-mini-links { max-width: 1100px; margin: 4px auto 0 auto; text-align: center; }
.footer-mini-links a { color: var(--ait-blue); text-decoration: none; }
.footer-mini-links a:hover { text-decoration: underline; }

footer .copyright {
  max-width: 1100px; margin: 10px auto 0 auto;
  text-align: center; font-size: 12px; color: #555;
  border-top: 1px solid #e5e7eb; padding-top: 10px;
}

/* Responsive: stack on mobile */
@media (max-width: 800px) {
  .footer-ai__form { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .branch__line { justify-content: center; }
}

/* ===== Footer styling ===== */
footer {
  background: #f8fafc;
  border-top: 2px solid var(--ait-blue);
  padding: 20px 16px;
  margin-top: 30px;
  font-size: 14px;
  color: #333;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.branch h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: var(--ait-blue);
}

.branch p {
  margin: 2px 0;
  line-height: 1.4;
}

footer .copyright {
  max-width: 1100px;
  margin: 16px auto 0 auto;
  text-align: center;
  font-size: 12px;
  color: #555;
  border-top: 1px solid #e5e7eb;
  padding-top: 10px;
}

/* Responsive: stack on mobile */
@media (max-width: 800px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.branch-grid {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 6px 8px;
  align-items: center;
}
.branch-grid a {
  color: var(--ait-blue);
  text-decoration: none;
  word-break: break-word; /* avoids long emails breaking layout */
}
.branch-grid a:hover {
  text-decoration: underline;
}

/* ========== Roles grid (2x2 layout) ========== */
.roles {
  margin: 40px auto;
  max-width: 1100px;
  padding: 0 16px;
}

.roles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* two columns */
  gap: 24px;
}

.role-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.2s ease;
}
.role-card:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.role-card h3 {
  margin-top: 0;
  color: var(--ait-blue);
  font-size: 18px;
}

.role-card p {
  font-size: 14px;
  color: #444;
  margin: 8px 0 12px 0;
  line-height: 1.4;
}

.role-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Equalize card heights in each row */
.roles-grid {
  align-items: stretch;
}
.role-card {
  height: 100%;
}

/* Mobile responsive */
@media (max-width: 800px) {
  .roles-grid {
    grid-template-columns: 1fr; /* stack on small screens */
  }
}

/* ===== FORCE Roles section into a 2×2 grid ===== */
.roles {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 16px;
}

.roles-grid {
  display: grid !important;                         /* <- force grid */
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 equal columns */
  gap: 24px;                                        /* space between cards */
  align-items: stretch;                             
}

.roles-grid > .role-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;     /* prevents overflow */
  height: 100%;     /* equal-height cards per row */
  transition: box-shadow .2s ease;
}
.roles-grid > .role-card:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
}

.role-card h3 {
  margin: 0 0 6px 0;
  color: var(--ait-blue);
  font-size: 18px;
}
.role-card p {
  margin: 6px 0 12px 0;
  font-size: 14px;
  color: #444;
  line-height: 1.4;
}
.role-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Mobile: stack to 1 column */
@media (max-width: 800px){
  .roles-grid { grid-template-columns: 1fr !important; }
}

/* ===== Courses grid / cards ===== */
.courses-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 1000px){ .courses-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px){ .courses-grid{ grid-template-columns: 1fr; } }

.course-card{
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: box-shadow .15s ease;
}
.course-card:hover{ box-shadow: 0 4px 14px rgba(0,0,0,.08); }

.course-thumb{
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: #f3f4f6;
}

.course-body{ padding: 12px; display:flex; flex-direction:column; gap:6px; }
.course-title{ margin:0; font-size:16px; color: var(--ait-blue); }

.course-footer{
  display:flex; align-items:center; justify-content:space-between;
  margin-top: 6px;
}
.course-price{ font-weight:700; }

