﻿/* =====================================================
   CERTIFICATES PAGE
   Dark / gold aesthetic matching main site
===================================================== */

/* --- HERO --- */
.cert-hero {
  position: relative;
  height:   500px;
  overflow: hidden;
}

.cert-hero img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
  filter:     grayscale(20%);
}

.cert-hero::before {
  content:    "";
  position:   absolute;
  inset:      0;
  background: linear-gradient(135deg, rgba(0,0,0,0.78) 0%, rgba(5,5,5,0.62) 100%);
  z-index:    1;
}

.cert-hero-content {
  position:        absolute;
  inset:           0;
  display:         flex;
  flex-direction:  column;
  justify-content: center;
  align-items:     center;
  text-align:      center;
  z-index:         2;
  padding:         0 20px;
  color:           #fff;
  animation:       certHeroIn 0.9s ease 0.3s both;
}

@keyframes certHeroIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cert-hero-content .eyebrow {
  color:         var(--color-gold);
  margin-bottom: 18px;
}

.cert-hero-content .eyebrow::before { background: var(--color-gold); }

.cert-hero-content h1 {
  font-size:      56px;
  font-weight:    700;
  letter-spacing: -1px;
  color:          #fff;
  margin:         0 0 18px;
  line-height:    1.1;
  max-width:      900px;
}

.cert-hero-content h1 strong {
  color:       var(--color-gold);
  font-weight: 700;
}

.cert-hero-content p {
  font-size:   18px;
  max-width:   640px;
  margin:      0;
  opacity:     0.82;
  line-height: 1.65;
  font-weight: 300;
}

/* --- PAGE BODY --- */
.cert-page {
  background: #fff;
  padding:    80px 40px 100px;
}

.cert-page-inner {
  max-width: 1100px;
  margin:    0 auto;
}

/* --- SECTION GROUP --- */
.cert-group {
  margin-bottom: 64px;
}

.cert-group:last-child { margin-bottom: 0; }

.cert-group-title {
  font-size:      13px;
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color:          var(--color-mid);
  padding-bottom: 14px;
  border-bottom:  2px solid var(--color-border);
  margin-bottom:  32px;
  display:        flex;
  align-items:    center;
  gap:            12px;
}

.cert-group-title::before {
  content:    '';
  display:    inline-block;
  width:      28px;
  height:     2px;
  background: var(--color-gold);
  flex-shrink: 0;
}

/* --- CERT GRID --- */
.cert-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   16px;
}

/* --- CERT CARD --- */
.cert-card {
  display:        flex;
  align-items:    center;
  gap:            16px;
  padding:        20px 22px;
  border:         1px solid var(--color-border);
  background:     #fff;
  text-decoration: none;
  transition:     border-color 0.25s ease, box-shadow 0.25s ease;
  position:       relative;
  cursor:         pointer;
}

.cert-card::before {
  content:    '';
  position:   absolute;
  left:       0;
  top:        0;
  bottom:     0;
  width:      3px;
  background: var(--color-gold);
  transform:  scaleY(0);
  transform-origin: bottom center;
  transition: transform 0.3s ease;
}

.cert-card:hover {
  border-color: var(--color-gold);
  box-shadow:   0 6px 24px rgba(0,0,0,0.08);
  text-decoration: none;
}

.cert-card:hover::before { transform: scaleY(1); }

.cert-card-icon {
  width:            44px;
  height:           44px;
  background:       var(--color-light);
  display:          flex;
  align-items:      center;
  justify-content:  center;
  flex-shrink:      0;
  transition:       background 0.25s ease;
}

.cert-card-icon i {
  font-size:  18px;
  color:      var(--color-gold);
}

.cert-card:hover .cert-card-icon { background: rgba(196,154,60,0.12); }

.cert-card-name {
  font-size:   14px;
  font-weight: 500;
  color:       var(--color-gray);
  line-height: 1.4;
  transition:  color 0.25s ease;
}

.cert-card:hover .cert-card-name { color: var(--color-primary); }

/* --- CTA --- */
.cert-cta {
  background:
    linear-gradient(135deg, rgba(15,15,15,0.97) 0%, rgba(5,5,5,0.97) 100%),
    url('../img/topbar2.jpg');
  background-size:     cover;
  background-position: center;
  padding:             80px 40px;
  position:            relative;
  overflow:            hidden;
}

.cert-cta::before {
  content:    '';
  position:   absolute;
  top:        0; left: 0; right: 0;
  height:     2px;
  background: linear-gradient(to right, transparent, var(--color-gold), transparent);
}

.cert-cta-inner {
  max-width:       1100px;
  margin:          0 auto;
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             40px;
}

.cert-cta .eyebrow {
  color:         var(--color-gold) !important;
  margin-bottom: 14px;
}

.cert-cta .eyebrow::before { background: var(--color-gold) !important; }

.cert-cta h2 {
  font-size:      34px;
  font-weight:    700;
  color:          #fff !important;
  margin:         0;
  letter-spacing: -0.5px;
}

.cert-cta h2::after  { display: none !important; }
.cert-cta h2 strong  { color: var(--color-gold); }

.cert-cta .btn-action {
  background:  var(--color-gold);
  color:       #fff !important;
  border:      2px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
}

.cert-cta .btn-action:hover {
  background: transparent;
  color:      var(--color-gold) !important;
  border:     2px solid var(--color-gold);
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
  .cert-hero             { height: 360px; }
  .cert-hero-content h1  { font-size: 36px; }
  .cert-hero-content p   { font-size: 15px; }

  /* Suppress CSS-only hero animation on mobile */
  .cert-hero-content     { animation: none; }

  .cert-page             { padding: 60px 20px 80px; }
  .cert-grid             { grid-template-columns: repeat(2, 1fr); }
  .cert-cta              { padding: 60px 20px; }
  .cert-cta-inner        { flex-direction: column; align-items: center; text-align: center; gap: 28px; }
  .cert-cta .btn-action  { align-self: center; }
  .cert-cta h2           { font-size: 26px; }
}

@media (max-width: 576px) {
  .cert-hero             { height: 280px; }
  .cert-hero-content h1  { font-size: 26px; }
  .cert-hero-content p   { font-size: 14px; }
  .cert-page             { padding: 50px 15px 70px; }
  .cert-grid             { grid-template-columns: 1fr; }
  .cert-group-title      { font-size: 12px; }
}





