:root {
  --navy: #071a35;
  --navy-2: #0d2b52;
  --gold: #d9a22c;
  --gold-dark: #a97710;
  --gold-soft: #fff4d8;
  --red: #b63f3a;
  --ink: #17212f;
  --muted: #637083;
  --paper: #f5f7fb;
  --white: #ffffff;
  --line: #dfe6ee;
  --shadow: 0 18px 50px rgba(7, 26, 53, 0.12);
  --radius: 8px;
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--white);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.65;
}

img,
svg {
  max-width: 100%;
}

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

a:hover {
  color: var(--gold-dark);
}

p {
  color: var(--muted);
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 1rem;
}

h1 {
  max-width: 980px;
  font-size: clamp(2.7rem, 7vw, 6rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: 1.08rem;
}

section {
  position: relative;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1100;
  transform: translateY(-150%);
  padding: 0.75rem 1rem;
  color: var(--navy);
  background: var(--gold);
  border-radius: var(--radius);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 26, 53, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 35px rgba(7, 26, 53, 0.2);
}

.nav-shell {
  width: min(100% - 2rem, 1240px);
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 0.8rem;
  color: var(--white);
}

.brand:hover {
  color: var(--white);
}

.brand-logo {
  width: 64px;
  height: 54px;
  flex: 0 0 64px;
  display: block;
  object-fit: contain;
  padding: 3px;
  background: #eef5ef;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
}

.brand-text {
  display: grid;
}

.brand-text strong {
  max-width: 330px;
  color: var(--white);
  font-size: 0.92rem;
  line-height: 1.25;
}

.brand-text small {
  color: rgba(255, 255, 255, 0.74);
  font-weight: 700;
}

.nav-toggle {
  width: 46px;
  height: 46px;
  display: none;
  place-items: center;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
}

.nav-toggle svg,
.btn svg,
.quick-item svg,
.info-card svg,
.programme-card svg,
.benefit-list svg,
.contact-card svg,
.scroll-top svg,
.map-marker svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.05rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 0.72rem;
  color: rgba(255, 255, 255, 0.86);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.hero-section {
  min-height: clamp(560px, 84vh, 780px);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg {
  background-image: url("../images/hero-icss-security.png");
  background-size: cover;
  background-position: center right;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 26, 53, 0.98) 0%, rgba(7, 26, 53, 0.86) 38%, rgba(7, 26, 53, 0.46) 74%, rgba(7, 26, 53, 0.32) 100%),
    linear-gradient(0deg, rgba(7, 26, 53, 0.74), rgba(7, 26, 53, 0.08));
}

.hero-content {
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.hero-content h1,
.hero-content p {
  color: var(--white);
}

.hero-lede {
  max-width: 760px;
  margin: 0 0 1.7rem;
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.85rem;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content .eyebrow,
.ethics-section .section-kicker {
  color: var(--gold);
}

.hero-actions,
.section-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 0.78rem 1.12rem;
  font-weight: 800;
  line-height: 1.1;
}

.btn-gold {
  color: var(--navy);
  background: var(--gold);
  border-color: var(--gold);
}

.btn-gold:hover,
.btn-gold:focus {
  color: var(--navy);
  background: #efba4b;
  border-color: #efba4b;
}

.btn-light-outline {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-light-outline:hover,
.btn-light-outline:focus {
  color: var(--navy);
  background: var(--white);
  border-color: var(--white);
}

.btn-navy {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.btn-navy:hover,
.btn-navy:focus {
  color: var(--white);
  background: var(--navy-2);
  border-color: var(--navy-2);
}

.btn-whatsapp {
  width: 100%;
  margin-top: 1rem;
  color: var(--white);
  background: #0b7f54;
  border-color: #0b7f54;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
  color: var(--white);
  background: #096f49;
  border-color: #096f49;
}

.quick-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.quick-item {
  min-height: 118px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.65rem;
  padding: 1rem;
  text-align: center;
  border-left: 1px solid var(--line);
}

.quick-item:last-child {
  border-right: 1px solid var(--line);
}

.quick-item svg {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--gold-dark);
}

.quick-item span {
  color: var(--navy);
  font-weight: 800;
}

.section-pad {
  padding: clamp(4rem, 7vw, 7rem) 0;
}

.section-muted {
  background: var(--paper);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 2.4rem;
  text-align: center;
}

.section-heading p:last-child {
  margin-bottom: 0;
}

.fact-row {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}

.fact-row div {
  padding: 1rem;
  background: var(--paper);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
}

.fact-row span {
  display: block;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fact-row strong {
  display: block;
  color: var(--navy);
  line-height: 1.35;
}

.brochure-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.brochure-frame img {
  width: 100%;
  height: min(620px, 76vh);
  display: block;
  object-fit: cover;
  object-position: center;
}

.brochure-frame .about-illustration {
  height: auto;
  aspect-ratio: 900 / 760;
  object-fit: contain;
  background: var(--navy);
}

.brochure-frame figcaption {
  padding: 0.9rem 1rem;
  color: var(--muted);
  background: var(--white);
  font-size: 0.9rem;
}

.icon-card-grid,
.programme-grid,
.contact-grid,
.membership-grid,
.objectives-grid,
.fee-layout {
  display: grid;
  gap: 1rem;
}

.about-icons {
  grid-template-columns: repeat(5, 1fr);
  margin-top: 3rem;
}

.info-card,
.programme-card,
.detail-card,
.fee-block,
.contact-card,
.form-panel,
.membership-card,
.objective-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(7, 26, 53, 0.06);
}

.info-card {
  min-height: 220px;
  padding: 1.25rem;
}

.info-card svg,
.programme-card svg,
.contact-card svg {
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  color: var(--gold-dark);
}

.info-card p,
.programme-card p,
.detail-card p,
.contact-card p {
  margin-bottom: 0;
}

.objectives-grid {
  grid-template-columns: repeat(7, 1fr);
}

.objective-card {
  min-height: 220px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.objective-card span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--gold-soft);
  border-radius: 50%;
  font-weight: 900;
}

.objective-card p {
  margin: auto 0 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.45;
}

.programme-grid {
  grid-template-columns: repeat(5, 1fr);
  margin-top: 2rem;
}

.programme-card {
  min-height: 250px;
  padding: 1.35rem;
}

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

.membership-card {
  padding: 0;
  overflow: hidden;
}

.membership-card summary {
  position: relative;
  min-height: 68px;
  display: flex;
  align-items: center;
  padding: 1.15rem 3rem 1.15rem 1.25rem;
  color: var(--navy);
  background: var(--white);
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 900;
}

.membership-card summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--gold-soft);
  border-radius: 50%;
  font-weight: 900;
}

.membership-card[open] summary::after {
  content: "-";
}

.membership-card p {
  padding: 0 1.25rem 1.25rem;
  margin: 0;
}

.benefits-band {
  background: #fffaf0;
}

.benefit-list {
  display: grid;
  gap: 0.9rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid #f1dfb9;
  border-radius: var(--radius);
}

.benefit-list svg {
  margin-top: 0.18rem;
  color: var(--gold-dark);
}

.benefit-list span {
  color: var(--ink);
  font-weight: 700;
}

.ethics-section {
  padding: clamp(4rem, 7vw, 7rem) 0;
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(7, 26, 53, 0.97), rgba(13, 43, 82, 0.94)),
    url("../images/icss-brochure-inside.jpeg") center/cover;
}

.ethics-content h2,
.ethics-content p {
  color: var(--white);
}

.ethics-content {
  max-width: 1040px;
}

.ethics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.ethics-grid p {
  min-height: 190px;
  padding: 1.25rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
}

.stage-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.4rem 0 1.7rem;
}

.stage-list span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.45rem 0.8rem;
  color: var(--navy);
  background: var(--gold-soft);
  border: 1px solid #f2d99f;
  border-radius: 999px;
  font-weight: 900;
}

.exam-detail-grid {
  display: grid;
  gap: 1rem;
}

.detail-card {
  padding: 1.35rem;
}

.fee-layout {
  grid-template-columns: repeat(2, 1fr);
}

.fee-block {
  overflow: hidden;
}

.fee-block h3 {
  padding: 1.1rem 1.25rem;
  margin: 0;
  color: var(--white);
  background: var(--navy);
}

.fee-table {
  min-width: 460px;
  margin: 0;
}

.fee-table th {
  color: var(--navy);
  background: var(--gold-soft);
}

.fee-table th,
.fee-table td {
  padding: 0.95rem 1.1rem;
  vertical-align: middle;
}

.fee-table td:last-child {
  color: var(--ink);
  font-weight: 800;
}

.steps {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}

.steps article {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.steps span {
  color: var(--gold-dark);
  font-weight: 900;
  text-transform: uppercase;
}

.steps p {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.address-stack {
  margin-top: 1.6rem;
  padding: 1.15rem;
  background: var(--navy);
  border-radius: var(--radius);
}

.address-stack p {
  margin: 0 0 0.7rem;
  color: rgba(255, 255, 255, 0.86);
}

.address-stack p:last-child {
  margin-bottom: 0;
}

.address-stack strong {
  color: var(--gold);
}

.form-panel {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.form-panel h3 {
  margin-bottom: 1.25rem;
}

.form-trap {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-panel button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--navy);
  font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.72rem 0.82rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 0.22rem rgba(217, 162, 44, 0.22);
}

.needs-validation.was-validated input:invalid,
.needs-validation.was-validated select:invalid,
.needs-validation.was-validated textarea:invalid {
  border-color: var(--red);
}

.invalid-feedback {
  color: var(--red);
  font-weight: 700;
}

.contact-section {
  background: var(--paper);
}

.contact-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 2rem;
}

.contact-card {
  min-height: 210px;
  padding: 1.4rem;
}

.contact-card a {
  color: var(--navy);
  font-weight: 900;
}

.contact-lower {
  margin-top: 0.5rem;
}

.map-panel {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: #dce8ee;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.map-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 26, 53, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(7, 26, 53, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, #e7eef3, #f5f0df 48%, #d7e3ec);
  background-size: 44px 44px, 44px 44px, auto;
}

.map-panel::before,
.map-panel::after {
  content: "";
  position: absolute;
  background: rgba(7, 26, 53, 0.14);
  border-radius: 999px;
  transform: rotate(-18deg);
}

.map-panel::before {
  width: 120%;
  height: 22px;
  top: 38%;
  left: -8%;
}

.map-panel::after {
  width: 90%;
  height: 18px;
  top: 64%;
  left: 18%;
  transform: rotate(23deg);
}

.map-marker {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.8rem;
  color: var(--white);
  background: var(--navy);
  border: 2px solid var(--gold);
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(7, 26, 53, 0.24);
}

.marker-one {
  top: 30%;
  left: 18%;
}

.marker-two {
  right: 14%;
  bottom: 24%;
}

.site-footer {
  color: rgba(255, 255, 255, 0.76);
  background: #061426;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.75fr;
  gap: 2rem;
  padding: 3rem 0 2rem;
}

.footer-brand {
  display: inline-flex;
  margin-bottom: 0.9rem;
  color: var(--gold);
  font-size: 1.6rem;
  font-weight: 900;
}

.footer-logo {
  width: 78px;
  height: auto;
  display: block;
  padding: 4px;
  object-fit: contain;
  background: #eef5ef;
  border-radius: 8px;
}

.site-footer h2 {
  color: var(--white);
  font-size: 1rem;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.74);
  margin-bottom: 0;
}

.footer-bottom {
  padding: 1rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.scroll-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 900;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--gold);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(7, 26, 53, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1199.98px) {
  .nav-toggle {
    display: grid;
  }

  .nav-links {
    position: absolute;
    top: var(--header-height);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.7rem;
    background: var(--navy);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    box-shadow: 0 18px 40px rgba(7, 26, 53, 0.35);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    justify-content: center;
  }

  .quick-grid,
  .about-icons,
  .programme-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 991.98px) {
  :root {
    --header-height: 72px;
  }

  .brand-text strong {
    max-width: 240px;
    font-size: 0.82rem;
  }

  .brand-logo {
    width: 58px;
    height: 48px;
    flex-basis: 58px;
  }

  .hero-section {
    min-height: 720px;
  }

  .hero-bg {
    background-position: center right 34%;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(7, 26, 53, 0.94), rgba(7, 26, 53, 0.66));
  }

  .ethics-grid,
  .fee-layout,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .membership-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .nav-shell {
    width: min(100% - 1rem, 1240px);
  }

  .brand-text strong {
    max-width: 190px;
  }

  .brand-text small {
    display: none;
  }

  .hero-content {
    padding-top: 3rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .quick-grid,
  .about-icons,
  .programme-grid,
  .objectives-grid {
    grid-template-columns: 1fr;
  }

  .quick-item {
    min-height: 90px;
    border-right: 1px solid var(--line);
  }

  .brochure-frame img {
    height: 430px;
  }

  .steps article {
    grid-template-columns: 1fr;
  }

  .map-panel {
    min-height: 340px;
  }

  .marker-one {
    left: 8%;
  }

  .marker-two {
    right: 8%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
