:root {
  --navy: #031326;
  --panel: #092846;
  --blue: #00c2ff;
  --green: #00e676;
  --white: #f6fbff;
  --muted: #a9bfd2;
  --line: rgba(104, 205, 255, .16)
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  background: radial-gradient(circle at 80% 10%, rgba(0, 230, 118, .07), transparent 25%), radial-gradient(circle at 10% 20%, rgba(0, 194, 255, .08), transparent 30%), var(--navy);
  color: var(--white);
  line-height: 1.6
}

a {
  text-decoration: none;
  color: inherit
}

.container {
  width: min(1180px, 92vw);
  margin: auto
}

.topbar {
  padding: 8px 14px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: #00131e;
  background: linear-gradient(90deg, var(--blue), var(--green))
}

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 16, 31, .87);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line)
}

.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 22px
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-right: auto
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--blue), var(--green));
  box-shadow: 0 0 30px rgba(0, 230, 118, .22);
  position: relative
}

.brand-mark:after {
  content: "CSP";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 1000;
  color: #031326
}

.brand strong {
  display: block;
  letter-spacing: .06em;
  font-size: 15px
}

.brand span {
  font-size: 9px;
  letter-spacing: .15em;
  color: #88a7c0
}

.nav-links {
  display: flex;
  gap: 17px;
  align-items: center;
  font-size: 12px;
  color: #dbe6ef
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green)
}

.nav-actions {
  display: flex;
  gap: 9px
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 17px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid transparent;
  transition: .2s
}

.btn-primary {
  background: linear-gradient(90deg, var(--blue), var(--green));
  color: #00141d
}

.btn-outline {
  border-color: rgba(81, 205, 255, .4);
  background: rgba(9, 38, 67, .55)
}

.btn:hover {
  transform: translateY(-2px)
}

.hero {
  min-height: 590px;
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(3, 19, 38, .98) 0%, rgba(3, 19, 38, .78) 48%, rgba(3, 19, 38, .13) 80%), url('pakistan-cyber-map.png') center/cover no-repeat
}

.hero.small {
  min-height: 420px
}

.hero-inner {
  padding: 85px 0
}

.eyebrow {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  color: var(--green);
  text-transform: uppercase
}

h1 {
  font-size: clamp(48px, 6vw, 78px);
  line-height: .98;
  letter-spacing: -.04em;
  margin: 11px 0 20px;
  max-width: 820px
}

.grad {
  color: transparent;
  background: linear-gradient(90deg, var(--blue), var(--green));
  -webkit-background-clip: text;
  background-clip: text
}

.hero p {
  max-width: 700px;
  font-size: 18px;
  color: #c3d3e1
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 27px
}

.meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 24px;
  color: #9fb4c8;
  font-size: 12px
}

.meta b {
  color: #fff
}

.section {
  padding: 82px 0
}

.section.alt {
  background: rgba(6, 24, 44, .38);
  border-block: 1px solid rgba(100, 190, 240, .08)
}

.kicker {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 900
}

.section h2 {
  font-size: clamp(34px, 4.2vw, 55px);
  line-height: 1.06;
  letter-spacing: -.03em;
  margin: 8px 0 14px
}

.lead {
  color: var(--muted);
  font-size: 16px;
  max-width: 760px
}

.grid {
  display: grid;
  gap: 18px
}

.g2 {
  grid-template-columns: repeat(2, 1fr)
}

.g3 {
  grid-template-columns: repeat(3, 1fr)
}

.g4 {
  grid-template-columns: repeat(4, 1fr)
}

.card {
  background: linear-gradient(180deg, rgba(12, 45, 78, .72), rgba(5, 24, 45, .84));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 25px;
  position: relative;
  overflow: hidden
}

.card:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  opacity: .7
}

.card h3 {
  font-size: 20px;
  line-height: 1.25;
  margin: 8px 0
}

.card p {
  color: #aabdd0;
  font-size: 14px
}

.card .tag {
  font-size: 10px;
  color: var(--green);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 900
}

.stat b {
  font-size: 35px;
  display: block
}

.stat span {
  font-size: 12px;
  color: #9cb2c7
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px
}

.pill {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 35, 62, .7);
  font-size: 12px
}

.timeline {
  border-left: 1px solid rgba(0, 194, 255, .28);
  padding-left: 28px
}

.session {
  position: relative;
  padding: 0 0 30px
}

.session:before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  left: -35px;
  top: 5px;
  box-shadow: 0 0 18px var(--green)
}

.time {
  font-size: 12px;
  color: var(--blue);
  font-weight: 900
}

.session h3 {
  margin: 4px 0
}

.session p {
  color: #aabdd0;
  margin: 0
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 24px 0
}

.filter {
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #082640;
  color: #dbe9f3;
  cursor: pointer
}

.filter.active {
  border-color: var(--green);
  color: var(--green)
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px
}

.article-card {
  min-height: 240px;
  display: flex;
  flex-direction: column
}

.article-card .push {
  margin-top: auto
}

.article {
  max-width: 850px;
  margin: auto
}

.article h2 {
  font-size: 30px;
  margin-top: 42px
}

.article p,
.article li {
  color: #c1d0dd
}

.article .note {
  border-left: 3px solid var(--green);
  padding: 14px 18px;
  background: rgba(0, 230, 118, .05);
  border-radius: 0 10px 10px 0
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

.field {
  display: grid;
  gap: 6px
}

.field.full {
  grid-column: 1/-1
}

.field label {
  font-size: 12px;
  color: #c8d7e3
}

input,
select,
textarea {
  width: 100%;
  background: #061d35;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: white;
  padding: 13px;
  font: inherit
}

textarea {
  min-height: 130px
}

.notice {
  padding: 16px 18px;
  border: 1px solid rgba(0, 230, 118, .25);
  background: rgba(0, 230, 118, .06);
  border-radius: 14px;
  color: #c8d8e3
}

.logo-box {
  height: 110px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(89, 199, 246, .28);
  border-radius: 16px;
  color: #8fa7bb;
  background: rgba(8, 34, 61, .65)
}

.cta {
  padding: 50px;
  border: 1px solid var(--line);
  border-radius: 26px;
  text-align: center;
  background: radial-gradient(circle at 80% 10%, rgba(0, 230, 118, .17), transparent 25%), radial-gradient(circle at 10% 90%, rgba(0, 194, 255, .16), transparent 25%), #082947
}

footer {
  padding: 52px 0 25px;
  border-top: 1px solid var(--line);
  color: #93aabd
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 28px
}

footer h4 {
  color: white;
  margin-top: 0
}

footer a {
  display: block;
  margin: 7px 0;
  font-size: 12px
}

.copy {
  margin-top: 30px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  font-size: 11px
}

@media(max-width:980px) {
 

  .g4,
  .g3,
  .article-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr
  }

  .hero {
    background-position: 68% center
  }
}

@media(max-width:640px) {

  .g4,
  .g3,
  .g2,
  .article-grid,
  .form,
  .footer-grid {
    grid-template-columns: 1fr
  }

  .field.full {
    grid-column: auto
  }

  .section {
    padding: 62px 0
  }

  .nav-actions .btn-outline {
    display: none
  }

  .hero {
    background-position: 74% center
  }

  .hero-inner {
    padding: 65px 0
  }

  .cta {
    padding: 32px 20px
  }
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  object-fit: contain;
  background: transparent;
  box-shadow: 0 0 30px rgba(0, 230, 118, .22);
  flex-shrink: 0;
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

/* Individual gallery card */
.gallery-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(12, 45, 78, .72), rgba(5, 24, 45, .84));
  transition: transform .25s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
}

.gallery-item:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 230, 118, .35);
}

/* Image container — fixed aspect ratio, no cutting */
.gallery-art {
  width: 100%;
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

/* Top gradient accent bar to match .card */
.gallery-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  opacity: .7;
  z-index: 2;
}

/* Caption */
.gallery-caption {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gallery-caption b {
  font-size: 15px;
  color: #eaf4fc;
  line-height: 1.3;
}

.gallery-caption span {
  font-size: 12.5px;
  color: #aabdd0;
  line-height: 1.5;
}

/* Responsive */
@media(max-width:980px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:640px) {
  .gallery-grid {
    grid-template-columns: 1fr
  }

  .gallery-art {
    aspect-ratio: 16/9
  }
}