/* =========================================================
   City Open University (CoU) - Collaboration Homepage
   Brand colors: Dark Red #890505, Black #000, White #fff
   Edit safely: search for "EDIT:" markers.
   ========================================================= */

:root {
  --cou-red: #890505;
  --cou-black: #000;
  --cou-white: #fff;
  --cou-gray-100: #f5f5f5;
  --cou-gray-200: #e9e9e9;
  --cou-gray-700: #333;
  --link-blue: #0b5ed7;
  --max-width: 1280px;
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: #000;
  background: #fff;
  line-height: 1.55;
  overflow-x: hidden; /* avoid horizontal scroll */
}

a { color: var(--link-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 18px;
}


/* ============================
   TOP NAVIGATION (3 rows)
   ============================ */

.topbar{
  background:#000;
  color:#fff;
  font-size:12px;
}
.topbar .row{
  display:flex;
  align-items:center;
  gap:12px;
  padding:8px 0;
  flex-wrap:nowrap;            /* keep one line */
  white-space:nowrap;
}
.social{
  display:flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
}
.social a{
  display:inline-flex;
  width:20px;height:20px;
  align-items:center;justify-content:center;
  border-radius:50%;
  background:#0f0f0f;
  border:1px solid rgba(255,255,255,.18);
}
.social svg{width:13px;height:13px;fill:#fff;opacity:.95}

.top-links{
  display:flex;
  align-items:center;
  gap:0;
  flex:1 1 auto;
  min-width:0;
  overflow:hidden;             /* prevent wrapping */
  flex-wrap:nowrap;
  white-space:nowrap;
}
.top-links a{
  color:#fff;
  font-weight:700;
  opacity:.95;
  padding:0 10px;
  line-height:1;
  border-right:1px solid rgba(255,255,255,.25); /* separators like screenshot */
}
.top-links a:first-child{padding-left:0}
.top-links a:last-child{border-right:0; padding-right:0}
.top-links a:hover{opacity:1;text-decoration:none}

.top-controls{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
}
.select{
  appearance:none;
  background:#111;
  color:#fff;
  border:1px solid rgba(255,255,255,.2);
  border-radius:6px;
  padding:6px 28px 6px 12px;
  font-weight:700;
  font-size:12px;
  line-height:1;
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
  background-size:5px 5px, 5px 5px;
  background-repeat:no-repeat;
}
.country{
  display:flex;
  align-items:center;
  gap:8px;
  background:#111;
  border:1px solid rgba(255,255,255,.2);
  border-radius:6px;
  padding:6px 10px;
  font-weight:700;
  font-size:12px;
  line-height:1;
}
.flag-us{
  width:18px;height:12px;border-radius:2px;
  background: linear-gradient(#b22234 0 0);
  position:relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.flag-us:before{
  content:"";
  position:absolute;left:0;top:0;
  width:40%;height:54%;
  background:#3c3b6e;
  border-top-left-radius:2px;
}
.caret{font-size:10px;opacity:.9}

/* Second row (black) */
.navbar{
  background:#0c0c0c;
  color:#fff;
  border-top:1px solid rgba(255,255,255,.08);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.navbar .row{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px 0;
  flex-wrap:nowrap;
  white-space:nowrap;
}
.nav-left{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  flex-wrap:nowrap;
  white-space:nowrap;
  overflow:hidden;
}
.nav-left a{
  color:#fff;
  font-weight:700;
  font-size:12px;
  opacity:.95;
}
.nav-left a:hover{opacity:1;text-decoration:none}
.nav-left .brand-badge{transform: translateY(-1px)}

/* Third row (dark red) */
.mainbar{
  background:var(--cou-red);
  color:#fff;
}
.mainbar .row{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:11px 0;
  flex-wrap:nowrap;
  white-space:nowrap;
  overflow:hidden;
}
.main-links{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  flex-wrap:nowrap;
  white-space:nowrap;
  overflow:hidden;
}
.main-links a{
  color:#fff;
  font-weight:800;
  font-size:13px;
  opacity:.98;
}
.main-links a:hover{opacity:1;text-decoration:none}
.main-links a.cta{
  font-weight:900;
}

/* Logo badge */
.brand-badge{
  width:26px;height:26px;border-radius:50%;
  background:#fff;
  border:2px solid rgba(0,0,0,.25);
  display:inline-flex;
  align-items:center;justify-content:center;
}
.brand-badge span{
  width:14px;height:14px;border-radius:50%;
  background:var(--cou-red);
  display:block;
}

/* Keep menus one-line on typical laptop widths */
@media (max-width: 1200px){
  .top-links a{padding:0 8px; font-size:11px}
  .nav-left{gap:14px}
  .main-links{gap:14px}
  .main-links a{font-size:12px}
}
@media (max-width: 1024px){
  /* Still one line: reduce spacing more */
  .top-links a{padding:0 6px}
  .nav-left{gap:10px}
  .main-links{gap:10px}
}


.page {
  padding: 18px 0 28px;
  background: #fff;
}

.section-row {
  display: grid;
  grid-template-columns: 320px 1fr 320px;
  gap: 16px;
  margin: 18px 0;
}
@media (max-width: 1100px) {
  .section-row { grid-template-columns: 1fr; }
}

.panel {
  border: 1px solid var(--cou-gray-200);
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,.04);
}
.panel .hd {
  padding: 12px 14px;
  border-bottom: 1px solid var(--cou-gray-200);
  background: #fcfcfc;
}
.panel .hd .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  color: #000;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--cou-gray-200);
  background: #fff;
  font-weight: 800;
  font-size: 12px;
}
.badge .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--cou-red);
}

.panel .bd {
  padding: 14px 14px 16px;
}

.card {
  border: 1px solid var(--cou-gray-200);
  border-radius: 14px;
  padding: 12px 12px;
  background: #fff;
  margin-bottom: 12px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.card p { margin: 0 0 8px; color: #111; }
.card ul { margin: 8px 0 0 18px; padding: 0; }
.card li { margin: 6px 0; }

.kpi {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.kpi .box {
  border: 1px dashed var(--cou-gray-200);
  border-radius: 14px;
  padding: 10px 10px;
  background: #fff;
}
.kpi .box .n {
  font-size: 18px;
  font-weight: 900;
}
.kpi .box .t {
  font-size: 12.5px;
  color: #222;
  font-weight: 700;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.table th, .table td {
  border: 1px solid var(--cou-gray-200);
  padding: 10px 10px;
  vertical-align: top;
}
.table th {
  background: #fafafa;
  text-align: left;
  font-weight: 900;
}

.downloads a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px;
  border: 1px solid var(--cou-gray-200);
  border-radius: 12px;
  margin: 8px 0;
  background: #fff;
}
.downloads a span {
  color: #000;
  font-weight: 800;
}
.downloads a small {
  color: #333;
  font-weight: 700;
}
.downloads a:hover {
  text-decoration: none;
  background: #fcfcfc;
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 700px) {
  .form { grid-template-columns: 1fr; }
}
.field label {
  display: block;
  font-weight: 800;
  font-size: 13px;
  margin: 0 0 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--cou-gray-200);
  border-radius: 12px;
  padding: 10px 10px;
  font-size: 14px;
}
.field textarea { min-height: 96px; resize: vertical; }
.form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.anchor-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 0;
}
.anchor-nav a {
  border: 1px solid var(--cou-gray-200);
  background: #fff;
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
}

.footer {
  background: #0b0b0b;
  color: #fff;
  padding: 24px 0 0;
  margin-top: 20px;
}
.footer a { color: #fff; opacity: .95; }
.footer a:hover { opacity: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.quicklinks h3 {
  margin: 0 0 10px;
  font-size: 18px;
}
.quicklinks .links {
  font-size: 13px;
  line-height: 1.9;
}
.address-card {
  background: #f4f4f4;
  color: #000;
  border-radius: 18px;
  padding: 18px 16px;
  position: relative;
}
.address-card .seal {
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(0,0,0,.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.address-card .seal span {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--cou-red);
  display: inline-block;
}
.address-card h3 {
  margin: 12px 0 6px;
  text-align: center;
}
.address-card .sub {
  text-align: center;
  font-weight: 800;
  margin: 0 0 10px;
}
.address-card .addr {
  text-align: center;
  font-size: 13px;
  color: #111;
}
.address-card .phone {
  text-align: center;
  font-weight: 900;
  color: #0a7b2b;
  margin: 10px 0;
}
.address-card .join {
  text-align: center;
  font-weight: 900;
  margin: 10px 0 6px;
}
.address-card .small {
  text-align: center;
  font-size: 13px;
  color: #111;
}
.address-card .social2 {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 8px;
}
.address-card .social2 a {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: #111;
  color: #fff;
  border: 1px solid #222;
}
.address-card .social2 svg { width: 15px; height: 15px; fill: #fff; }

.footer-bottom {
  padding: 10px 0 14px;
  font-size: 12.5px;
  text-align: center;
  color: rgba(255,255,255,.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.footer-bottom a { color: #fff; }

.chat-pill {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: var(--cou-red);
  color: #fff;
  padding: 14px 16px;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(0,0,0,.25);
  cursor: pointer;
  border: 2px solid rgba(0,0,0,.2);
}
.chat-pill:active { transform: translateY(1px); }