/* ==========================================================================
   CERTIFICATIONS DEDICATED PAGE STYLES - ASHHDIGITAL
   ========================================================================== */

.page-certifications {
  background-color: #070709;
}

/* Page Hero */
.cert-page-hero {
  max-width: 860px;
  margin: 0 auto 50px auto;
}

.page-main-title {
  font-size: 3.4rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.page-main-desc {
  font-size: 1.1rem;
  line-height: 1.65;
  color: #BDB7CC;
  margin-bottom: 32px;
}

.cert-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* Resume Navigation Button */
.btn-resume-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s var(--ease-smooth);
}

.btn-resume-nav:hover {
  background: rgba(255, 42, 77, 0.2);
  border-color: var(--primary-coral);
  color: #FFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 42, 77, 0.3);
}

.btn-nav-icon {
  width: 15px;
  height: 15px;
  color: var(--primary-coral);
}

/* Resume Hero Button */
.btn-resume-hero {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.btn-resume-hero:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-coral);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 30px rgba(255, 42, 77, 0.35);
}

/* Stats Ribbon */
.cert-stats-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 24px 36px;
  border-radius: 20px;
  border: 1px solid rgba(255, 42, 77, 0.2);
  background: rgba(14, 12, 20, 0.65);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 42, 77, 0.1);
  margin-top: 10px;
}

.cert-stat-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cert-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: #FF2A4D;
  text-shadow: 0 0 16px rgba(255, 42, 77, 0.4);
  line-height: 1;
  margin-bottom: 4px;
}

.cert-stat-lbl {
  font-size: 0.82rem;
  color: #C3BFD2;
  font-weight: 500;
}

.cert-stat-divider {
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
}

/* Controls: Filter & Search */
.cert-controls-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.cert-filter-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-tab {
  background: rgba(18, 15, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #A9A3BB;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
}

.filter-tab:hover {
  color: #FFFFFF;
  border-color: rgba(255, 42, 77, 0.3);
  transform: translateY(-2px);
}

.filter-tab.active {
  background: var(--accent-gradient);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(255, 42, 77, 0.4);
}

/* Search Box */
.cert-search-box {
  position: relative;
  min-width: 300px;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.cert-search-box input {
  width: 100%;
  padding: 11px 18px 11px 44px;
  background: rgba(14, 12, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s ease;
}

.cert-search-box input:focus {
  border-color: var(--primary-coral);
  box-shadow: 0 0 20px rgba(255, 42, 77, 0.25);
}

.cert-search-box input::placeholder {
  color: #7A748A;
}

/* Full Grid of Cards */
.cert-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cert-full-card {
  display: flex;
  flex-direction: column;
  padding: 30px 24px;
  border-radius: 22px;
  position: relative;
  transition: all 0.35s var(--ease-smooth);
}

.cert-full-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 42, 77, 0.4);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 42, 77, 0.15);
}

.cert-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.cert-cat-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFA552;
  background: rgba(255, 94, 0, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 94, 0, 0.2);
}

.cert-cat-pill.cat-ai {
  color: #FF5E7E;
  background: rgba(255, 42, 77, 0.12);
  border-color: rgba(255, 42, 77, 0.3);
}

.cert-verified-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #25D366;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.3);
  padding: 3px 8px;
  border-radius: 999px;
}

.cert-icon-large {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 16px;
}

.cert-card-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.3;
  margin-bottom: 10px;
}

.cert-card-desc {
  font-size: 0.88rem;
  color: #A9A3BB;
  line-height: 1.55;
  margin-bottom: 24px;
}

.btn-cert-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.icon-external {
  width: 16px;
  height: 16px;
  color: var(--primary-coral);
  transition: transform 0.25s ease;
}

.btn-cert-link:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #FFF;
  box-shadow: 0 6px 20px rgba(255, 42, 77, 0.4);
}

.btn-cert-link:hover .icon-external {
  transform: translate(2px, -2px);
  color: #FFF;
}

/* Home Page Cert Card Link Enhancements */
.cert-card-link {
  text-decoration: none;
  cursor: pointer;
}

.cert-card-link:hover h4 {
  color: #FFFFFF;
}

.cert-view-hint {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary-coral);
  margin-top: 4px;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cert-card-link:hover .cert-view-hint {
  opacity: 1;
  transform: translateX(2px);
}

/* No Results Message */
.no-results-msg {
  padding: 60px 20px;
}

.no-results-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.no-results-msg h3 {
  font-size: 1.5rem;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.no-results-msg p {
  color: #8C869D;
  font-size: 0.95rem;
}

/* Animation */
@keyframes fadeInCard {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1200px) {
  .cert-full-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-main-title {
    font-size: 2.3rem;
  }
  .cert-stats-ribbon {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }
  .cert-stat-divider {
    width: 80%;
    height: 1px;
  }
  .cert-controls-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
  .cert-search-box {
    width: 100%;
    min-width: unset;
  }
  .cert-filter-tabs {
    justify-content: center;
  }
  .cert-full-grid {
    grid-template-columns: 1fr;
  }
}
