:root {
    --blue: #073b9d;
    --blue-dark: #082a70;
    --blue-bright: #3159ff;
    --red: #e5222a;
    --ink: #111827;
    --muted: #667085;
    --page-width: 1230px;
  }
  * { box-sizing: border-box; }
  body { margin: 0; font-family: "Nunito Sans", sans-serif; color: var(--ink); background: #fff; }
  a { color: inherit; text-decoration: none; }
  .container { width: min(var(--page-width), calc(100% - 40px)); margin: 0 auto; }
  .site-header { background: #fff; box-shadow: 0 2px 10px rgba(15, 23, 42, .08); position: relative; z-index: 2; }
  .header-main { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .brand { display: flex; align-items: center; gap: 12px; min-width: 260px; }
  .brand-mark { width: 72px; height: 54px; display: grid; place-items: center; color: var(--red); font-size: 37px; line-height: 1; }
  .brand-mark svg { width: 70px; height: 52px; }
  .brand-name { font-size: 24px; font-weight: 800; letter-spacing: .5px; color: #333; }
  .brand-subtitle { font-size: 11px; margin-top: 3px; color: #444; }
  .main-nav { display: flex; gap: 34px; align-items: center; font-size: 12px; font-weight: 700; }
  .main-nav a { color:#f39c12;padding: 12px 0; white-space: nowrap; }
  .main-nav a:hover { color: var(--red); }
  .news-row { height: 36px; border: 1px solid #f0444c; border-radius: 3px; display: flex; align-items: stretch; margin-bottom: 7px; overflow: hidden; font-size: 12px; }
  .news-label { background: var(--red); color: white; font-weight: 700; display: grid; place-items: center; padding: 0 22px; white-space: nowrap; }
  .news-text { display: flex; align-items: center; padding: 0 14px; flex: 1; color: #333; }
  .news-controls { display: flex; align-items: center; }
  .news-controls button { border: 0; border-left: 1px solid #eee; background: #f7f7f7; color: #555; height: 100%; width: 30px; cursor: pointer; font-size: 17px; }
  .hero { color: white; background: radial-gradient(ellipse at 50% 10%, #1456c7 0%, #073b9d 55%, #092a6e 100%); position: relative; overflow: hidden; }
  .hero:before, .hero:after { content: ""; position: absolute; border: 1px solid rgba(100, 170, 255, .16); border-radius: 50%; width: 470px; height: 470px; top: -180px; }
  .hero:before { left: -210px; box-shadow: 0 0 0 55px rgba(80,150,255,.05), 0 0 0 110px rgba(80,150,255,.04); }
  .hero:after { right: -260px; box-shadow: 0 0 0 55px rgba(80,150,255,.05), 0 0 0 110px rgba(80,150,255,.04); }
  .hero-inner { min-height: 360px; display: grid; grid-template-columns: 273px minmax(0, 1fr); gap: 24px; align-items: center; padding: 24px 28px; position: relative; z-index: 1; }
  .leader-photo { width: 100%; height: 275px; object-fit: cover; object-position: center 25%; border: 2px solid rgba(255,255,255,.75); border-radius: 16px; box-shadow: 0 8px 20px rgba(0,0,0,.22); background: #d8e5f4; }
  .quote-card { min-width: 0; position: relative; border: 1px solid rgba(72, 153, 255, .8); background: rgba(2, 33, 101, .5); border-radius: 20px; padding: 16px 22px 18px 16px; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
  .quote-card:before { content: ""; position: absolute; top: 2px; left: 12px; color: #72a9ff; font-size: 65px; font-weight: 700; line-height: 1; }
  .quote-card p { margin: 0; font-size: 12.5px; line-height: 1.62; letter-spacing: .35px; }
  .quote-author { margin-top: 14px; font-size: 13px; }
  .quote-author strong { margin-left: 16px; margin-right: 10px; }
  .about-section {
    background: linear-gradient(115deg, #eef2ff 0%, #d4e1ff 52%, #526de0 100%);
    padding: 14px 0 10px;
  }
  .tabs { display: flex; align-items: flex-end; gap: 0; padding-left: 0; }
  .tab {
    padding: 14px 26px;
    min-width: 100px;
    background: transparent;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 0;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: #111827;
  }
  .tab.active {
    background: #e8edff;
    color: #111827;
    border: 4px solid #818cf8;
    border-bottom: none;
    padding: 11px 23px 14px;
  }
  .about-card {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 20px;
    padding: 24px;
    border: 4px solid #818cf8;
    border-radius: 0;
    background: rgba(255, 255, 255, .12);
    box-shadow: none;
    min-height: 310px;
    align-items: start;
  }
  .building-photo {
    width: 100%;
    height: 145px;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    border: 0;
    display: block;
  }
  .about-copy {
    min-width: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
    text-align: justify;
    color: #111827;
  }
  .about-copy strong { color: #123db1; font-weight: 700; }

  /* Content layouts for the Vision, Governing Body and Partners tabs */
  .vision-panel {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    min-height: 270px;
    padding: 20px 16px;
  }
  .vision-image-placeholder {
    width: 100%;
    height: 178px;
    border: 1px solid rgba(50, 60, 90, .65);
    background: rgba(255,255,255,.06);
  }
  .vision-statement {
    text-align: center;
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.45;
    color: #050b20;
  }
  .governing-table-wrap { width: 100%; overflow-x: auto; }
  .governing-table {
    width: 100%;
    border-collapse: collapse;
    color: #101321;
    font-size: 14px;
    min-width: 720px;
  }
  .governing-table th, .governing-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,.7);
    vertical-align: top;
  }
  .governing-table th { font-weight: 800; }
  .governing-table td { font-weight: 600; }
  .governing-table th:first-child, .governing-table td:first-child { width: 60px; }
  .governing-table th:last-child, .governing-table td:last-child { width: 150px; }
  .partners-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 28px;
    align-items: center;
    justify-items: center;
    min-height: 145px;
    padding: 20px 14px;
  }
  .partner-logo {
    min-height: 72px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
    background: rgba(255,255,255,.92);
    color: #14509b;
    font-weight: 800;
    letter-spacing: .3px;
    border: 1px solid rgba(255,255,255,.8);
  }
  .partner-logo small { display: block; font-size: 9px; font-weight: 600; letter-spacing: 0; }
  @media (max-width: 700px) {
    .vision-panel { grid-template-columns: 1fr; gap: 16px; }
    .vision-image-placeholder { max-width: 260px; margin: 0 auto; }
    .partners-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .governing-table { font-size: 12px; }
  }


  .about-card.table-panel, .about-card.partners-panel, .about-card.vision-content-panel {
    display: block;
    padding: 20px;
    min-height: 0;
  }
  .about-card.partners-panel { padding: 0 10px; }
  .about-card.vision-content-panel { padding: 0 16px; }

  .courses { padding: 28px 0 22px; }
  .section-title { text-align: center; font-size: 25px; font-weight: 800; margin: 0 0 22px; color: #061f7e; }
  .title-underline { width: 38px; height: 2px; background: #ffb000; margin: -12px auto 18px; }
  .course-carousel { position: relative; }
  .course-grid {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 0 2px 8px;
    scroll-snap-type: x mandatory;
  }
  .course-grid::-webkit-scrollbar { display: none; }
  .course-card {
    flex: 0 0 calc((100% - 90px) / 4);
    height: 180px;
    border: 2px solid #111;
    border-radius: 9px;
    overflow: hidden;
    position: relative;
    background: #1d3557;
    box-shadow: 0 2px 5px rgba(0,0,0,.18);
    scroll-snap-align: start;
  }
  .course-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
  .course-card:hover img { transform: scale(1.05); }
  .course-card:after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.82), transparent 72%); }
  .course-title { position: absolute; z-index: 1; left: 12px; right: 10px; bottom: 10px; color: #fff; font-size: 17px; font-weight: 800; text-transform: uppercase; line-height: 1.15; }
  .course-arrow { position: absolute; z-index: 1; right: 12px; bottom: 10px; width: 28px; height: 28px; border: 2px solid white; color: white; border-radius: 50%; display: grid; place-items: center; font-size: 18px; }
  .course-dots { display: flex; justify-content: center; gap: 10px; padding-top: 8px; }
  .course-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: #c9c9c9; cursor: pointer; }
  .course-dot.active { background: #111; }
  footer { background: #141516; color: #ddd; }
  .footer-grid { display: grid; grid-template-columns: 1.05fr 1.5fr .95fr 1fr; gap: 35px; padding: 36px 10px 28px; }
  .footer-col { display: flex; gap: 14px; }
  .footer-icon { color: #c7c9cc; font-size: 21px; width: 22px; flex: 0 0 22px; }
  .footer-col h3 { margin: 0 0 10px; color: white; font-size: 11px; letter-spacing: .7px; }
  .footer-col p { margin: 0; color: #aaa; font-size: 11px; line-height: 1.55; }
  .footer-bottom { border-top: 1px solid #2b2b2b; display: flex; justify-content: space-between; align-items: center; padding: 15px 10px; color: #aaa; font-size: 11px; }
  .powered { display: flex; align-items: center; gap: 10px; }
  .powered-mark { border: 2px solid #0da6bb; color: #19b7cb; font-weight: 800; padding: 4px; font-size: 16px; }
  @media (max-width: 850px) {
    .hero-inner { min-height: 300px; grid-template-columns: 190px minmax(0, 1fr); padding: 18px 0; }
    .leader-photo { height: 220px; }
    .header-main { flex-wrap: wrap; padding: 12px 0; }
    .main-nav { gap: 16px; flex-wrap: wrap; }
    .hero-inner { grid-template-columns: 190px 1fr; padding: 18px 0; }
    .leader-photo { height: 190px; }
    .quote-card { padding: 18px 18px 18px 36px; }
    .about-card { grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 18px; min-height: 260px; }
    .building-photo { height: 150px; }
    .course-card { flex-basis: calc((100% - 30px) / 2); height: 150px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 560px) {
    .container { width: min(100% - 24px, var(--page-width)); }
    .brand-mark { width: 48px; }
    .brand-mark svg { width: 48px; }
    .brand-name { font-size: 20px; }
    .brand-subtitle { font-size: 10px; }
    .main-nav { width: 100%; justify-content: space-between; font-size: 10px; gap: 8px; }
    .news-label { padding: 0 10px; }
    .news-text { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .hero-inner { min-height: auto; grid-template-columns: 1fr; gap: 14px; padding: 18px 0; }
    .leader-photo { max-width: 230px; height: 190px; margin: 0 auto; }
    .quote-card p { font-size: 12px; }
    .quote-author { line-height: 1.7; }
    .tab { flex: 1; min-width: 0; padding: 11px 4px; font-size: 10px; }
    .about-card { grid-template-columns: 1fr; padding: 16px; gap: 14px; min-height: 0; }
    .building-photo { height: 200px; }
    .about-copy { font-size: 13px; }
    .tab { padding: 10px 8px; font-size: 11px; }
    .tab.active { padding: 7px 5px 10px; border-width: 3px; }
    .section-title { font-size: 21px; }
    .course-grid { gap: 12px; }
    .course-card { flex-basis: 82%; height: 145px; }
    .course-title { font-size: 13px; left: 10px; }
    .course-arrow { width: 23px; height: 23px; right: 8px; }
    .footer-grid { grid-template-columns: 1fr; gap: 22px; padding: 28px 0; }
    .footer-bottom { gap: 14px; flex-wrap: wrap; }
  }

/* Partners tab: horizontal logo row matching the reference screenshot. */
.about-card.partners-panel {
  display: block;
  min-height: 0;
  padding: 0;
  border: 4px solid #8588ff;
  border-radius: 0;
  background: linear-gradient(180deg, #a8b6ec 0%, #536ce0 100%);
  box-shadow: none;
}

.about-card.partners-panel .partners-grid {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  gap: 28px;
  min-height: 142px;
  padding: 18px 30px;
  background: transparent;
  border: 0;
}

.about-card.partners-panel .partner-logo {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  min-height: 0;
  height: 100px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-decoration: none;
  transition: transform .2s ease;
}

.about-card.partners-panel .partner-logo:hover {
  transform: translateY(-2px);
}

.about-card.partners-panel .partner-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 150px;
  max-height: 92px;
  object-fit: contain;
}

.about-card.partners-panel .partner-logo:nth-child(1) img {
  max-width: 115px;
}
.about-card.partners-panel .partner-logo:nth-child(2) img {
  max-width: 125px;
  max-height: 100px;
}
.about-card.partners-panel .partner-logo:nth-child(3) img {
  max-width: 110px;
  max-height: 95px;
}
.about-card.partners-panel .partner-logo:nth-child(4) img {
  max-width: 105px;
  max-height: 75px;
}
.about-card.partners-panel .partner-logo:nth-child(5) img {
  max-width: 115px;
  max-height: 78px;
}

@media (max-width: 700px) {
  .about-card.partners-panel .partners-grid {
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 14px;
  }

  .about-card.partners-panel .partner-logo {
    flex: 1 1 28%;
    height: 82px;
  }

  .about-card.partners-panel .partner-logo img {
    max-width: 100px;
    max-height: 68px;
  }
}

.brand-mark {
  width: 100px;
  height: 60px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

/* Footer */
footer {
  background: #151515;
  color: #c8c8c8;
  width: 100%;
}

footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 0;
  box-sizing: border-box;
}

/* Contact information */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  padding-bottom: 35px;
}

.footer-col {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.footer-icon {
  flex-shrink: 0;
  font-size: 24px;
  color: #fff;
}

.footer-col h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.footer-col p {
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
}

/* Copyright and ICT Academy logo */
.footer-bottom {
  min-height: 90px;
  border-top: 1px solid #303030;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 11px;
}

.powered {
  display: flex;
  align-items: center;
  gap: 10px;
}

.powered img {
  display: block;
  width: 140px;
  height: auto;
  object-fit: contain;
}

.powered span {
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  footer .container {
    padding: 30px 18px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

 .footer-bottom {
    min-height: 150px;
    gap: 12px;
  }

  .powered img {
    width: 100px;
    height: 100px;
  }

  .powered span {
    white-space: normal;
  }
}

.main-nav .nav-dropdown {
  position: relative;
}

.main-nav .dropdown-toggle {
  background: none;
  border: none;
  padding: 12px 0;
  color: #f39c12;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.main-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 142px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  z-index: 1000;
}

.main-nav .nav-dropdown.open .dropdown-menu {
  display: block;
}

.main-nav .dropdown-menu a {
  display: block;
  padding: 14px;
  color: #333;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
}

.main-nav .dropdown-menu a:hover {
  background: #f5f5f5;
  color: #f39c12;
}
