
/* ==========================================
   ADEL ACCESSORIES - CERTIFICATIONS PAGE
   ========================================== */

:root {
  --cert-navy: #071d30;
  --cert-navy-light: #102c43;
  --cert-blue: #00aaf0;
  --cert-blue-dark: #008bd0;
  --cert-text: #102a43;
  --cert-muted: #60748a;
  --cert-bg: #f2f7fc;
  --cert-border: #dce8f3;
  --cert-white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--cert-text);
  background: var(--cert-bg);
  font-family: Arial, Helvetica, sans-serif;
}

.cert-navbar {
  min-height: 72px;
  padding: 12px 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--cert-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.cert-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  color: var(--cert-blue);
  border: 2px solid var(--cert-blue);
  border-radius: 50%;
  font-size: 27px;
  font-weight: 900;
  font-style: italic;
}

.logo-text {
  color: #ffbf26;
  font-size: 25px;
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: 1px;
}

.logo-text small {
  display: block;
  margin-top: 4px;
  color: #ffffff;
  font-size: 9px;
  letter-spacing: 2.2px;
}

.cert-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.5vw, 23px);
}

.cert-nav-links a {
  padding: 14px 0;
  position: relative;
  color: #f2f7fc;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.cert-nav-links a:hover,
.cert-nav-links a.active {
  color: var(--cert-blue);
}

.cert-nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--cert-blue);
}

.nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 17px;
  color: white;
  background: var(--cert-blue-dark);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s ease;
}

.nav-contact:hover {
  background: var(--cert-blue);
}

.cert-menu-toggle {
  display: none;
  color: white;
  background: transparent;
  border: 1px solid #3c5b72;
  border-radius: 4px;
  padding: 9px 12px;
  font-size: 21px;
  cursor: pointer;
}

/* Hero banner */

.cert-hero {
  min-height: 245px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 45px 4%;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(90deg, rgba(3, 22, 39, 0.97) 0%,
    rgba(3, 29, 50, 0.88) 40%,
    rgba(3, 29, 50, 0.25) 100%),
    url("../images/certifications/certification-hero.jpg") center 45% / cover no-repeat,
    var(--cert-navy);
}

.cert-hero::after {
  content: "";
  position: absolute;
  right: 12%;
  top: -80px;
  width: 260px;
  height: 420px;
  border-left: 1px solid rgba(0, 170, 240, 0.65);
  border-right: 1px solid rgba(0, 170, 240, 0.35);
  transform: skewX(-35deg);
  pointer-events: none;
}

.cert-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 170, 240, 0.07), transparent);
  pointer-events: none;
}

.cert-hero-content {
  position: relative;
  z-index: 1;
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cert-blue-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.5;
}

.cert-hero .eyebrow {
  color: var(--cert-blue);
}

.eyebrow span {
  display: inline-block;
  width: 22px;
  height: 2px;
  margin: 0 8px 3px 0;
  background: currentColor;
}

.cert-hero h1 {
  margin: 0 0 10px;
  color: white;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.05;
}

.cert-hero h1 span {
  color: var(--cert-blue);
}

.cert-hero-content > p:last-child {
  max-width: 560px;
  margin: 0;
  color: #d9e7f3;
  font-size: 15px;
  line-height: 1.7;
}

.hero-side-label {
  position: absolute;
  right: 5%;
  bottom: 26px;
  z-index: 1;
  color: #75c7eb;
  font-size: 11px;
  letter-spacing: 4px;
  line-height: 2;
}

/* Content sections */

.cert-section {
  max-width: 1500px;
  margin: 0 auto;
  padding: 27px 4% 8px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 16px;
}

.section-heading .eyebrow {
  margin-bottom: 4px;
}

.section-heading h2 {
  margin: 0;
  color: var(--cert-navy);
  font-size: clamp(24px, 3vw, 31px);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.section-heading h2 span {
  color: var(--cert-blue-dark);
}

.section-intro {
  max-width: 390px;
  margin: 0 0 3px;
  color: var(--cert-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* Certificate cards */

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cert-card {
  display: grid;
  grid-template-columns: minmax(125px, 31%) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  min-width: 0;
  padding: 13px;
  background: var(--cert-white);
  border: 1px solid #e1ebf4;
  border-radius: 7px;
  box-shadow: 0 6px 22px rgba(15, 52, 81, 0.055);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cert-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(15, 52, 81, 0.11);
}

.certificate-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 170px;
  padding: 5px;
  overflow: hidden;
  background: #f4f7fa;
  border: 1px solid #d6e0ea;
  border-radius: 3px;
  text-decoration: none;
}

.certificate-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.cert-card:hover .certificate-image img {
  transform: scale(1.025);
}

.cert-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cert-number {
  color: var(--cert-blue-dark);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
}

.cert-info h3 {
  margin: 3px 0 7px;
  color: var(--cert-navy);
  font-size: 18px;
  line-height: 1.25;
}

.cert-info > p {
  margin: 0 0 10px;
  color: #53677c;
  font-size: 13px;
  line-height: 1.55;
}

.cert-meta {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 5px 9px;
  width: 100%;
  margin: 0 0 12px;
  padding-top: 9px;
  border-top: 1px solid #e4edf5;
  color: #63758a;
  font-size: 11px;
  line-height: 1.4;
}

.cert-meta strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #31485e;
  font-weight: 700;
}

.view-cert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding: 7px 12px;
  color: var(--cert-navy);
  background: white;
  border: 1px solid var(--cert-blue);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.view-cert:hover {
  color: white;
  background: var(--cert-blue-dark);
}

/* Three-column HAL section */

.cert-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cert-card-compact {
  grid-template-columns: minmax(95px, 35%) minmax(0, 1fr);
  gap: 12px;
  padding: 11px;
}

.cert-card-compact .certificate-image {
  min-height: 150px;
}

.cert-card-compact .cert-info h3 {
  font-size: 15px;
}

.cert-card-compact .cert-info > p {
  font-size: 12px;
}

.cert-card-compact .view-cert {
  padding: 7px 9px;
  font-size: 11px;
}

.cert-last-section {
  padding-bottom: 45px;
}

/* Footer */

.cert-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 25px;
  padding: 28px 4%;
  color: #dce9f5;
  background: var(--cert-navy);
}

.footer-brand {
  color: #ffbf26;
  font-size: 21px;
  font-weight: 900;
  text-decoration: none;
}

.footer-brand span {
  display: block;
  margin-top: 3px;
  color: white;
  font-size: 9px;
  letter-spacing: 2px;
}

.cert-footer p {
  margin: 0;
  color: #bdccda;
  font-size: 12px;
}

.cert-footer > a:not(.footer-brand) {
  color: var(--cert-blue);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.cert-footer small {
  width: 100%;
  padding-top: 13px;
  color: #8fa6b9;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
}

/* Responsive layout */

@media (max-width: 1200px) {
  .cert-navbar {
    gap: 15px;
  }

  .cert-nav-links {
    gap: 12px;
  }

  .cert-nav-links a {
    font-size: 11px;
  }

  .logo-text {
    font-size: 21px;
  }

  .nav-contact {
    padding: 12px;
  }

  .cert-grid-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .cert-navbar {
    flex-wrap: wrap;
  }

  .cert-menu-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-contact {
    display: none;
  }

  .cert-nav-links {
    display: none;
    order: 5;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
  }

  .cert-nav-links.show {
    display: flex;
  }

  .cert-nav-links a {
    padding: 12px 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
  }

  .cert-nav-links a.active::after {
    display: none;
  }

  .cert-hero {
    min-height: 230px;
  }

  .cert-grid,
  .cert-grid-three {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .section-intro {
    max-width: 650px;
  }
}

@media (max-width: 520px) {
  .cert-hero {
    min-height: 230px;
    padding: 32px 5%;
    background-position: center;
  }

  .cert-hero h1 {
    font-size: 38px;
  }

  .cert-hero-content > p:last-child {
    font-size: 13px;
  }

  .hero-side-label {
    display: none;
  }

  .cert-section {
    padding: 25px 4% 7px;
  }

  .section-heading h2 {
    font-size: 24px;
  }

  .cert-card,
  .cert-card-compact {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 12px;
  }

  .certificate-image,
  .cert-card-compact .certificate-image {
    min-height: 220px;
    max-height: 300px;
  }

  .certificate-image img {
    max-height: 280px;
  }

  .cert-info h3 {
    font-size: 18px;
  }

  .cert-meta {
    font-size: 12px;
  }

  .cert-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
