﻿
/* PAGE HERO */
.page-hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, #1a4a8a 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 0 70px;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
}

.breadcrumb a {
  color: rgba(255, 255, 255, .7);
  transition: .2s;
}

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

.breadcrumb .sep {
  color: rgba(255, 255, 255, .3);
}

.breadcrumb .current {
  color: var(--gold);
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
}

.page-hero p {
  margin: 0;
  font-size: 16px;
  color: rgba(255, 255, 255, .72);
  max-width: 580px;
  line-height: 1.65;
}

.hero-gold-bar {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  border-radius: 4px;
  margin: 20px 0;
}

.hero-deco {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .06);
}

.hero-deco::before {
  content: '';
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .04);
}

@media(max-width:768px) {
  .hero-deco {
    display: none;
  }
}

/* MAIN */
.aff-section {
  padding: 72px 0;
}

/* Group block */
.aff-group {
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 40px -12px rgba(8, 29, 69, .09);
  overflow: hidden;
  margin-bottom: 32px;
}

.aff-group-header {
  padding: 22px 32px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
}

.aff-group-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.aff-group-icon.gold {
  background: linear-gradient(135deg, #fff4cc, #ffe580);
}

.aff-group-icon.blue {
  background: linear-gradient(135deg, #dce8ff, #b8d0ff);
}

.aff-group-icon.gold svg {
  color: var(--gold-deep);
}

.aff-group-icon.blue svg {
  color: var(--royal);
}

.aff-group-header h2 {
  margin: 0 0 2px;
  font-size: 19px;
  font-weight: 800;
  color: var(--navy-deep);
}

.aff-group-header p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.aff-group-body {
  padding: 32px;
}

/* Cards grid */
.aff-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

@media(max-width:1100px) {
  .aff-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media(max-width:600px) {
  .aff-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Single card */
.aff-card {
  border-radius: 16px;
  border: 1.5px solid var(--line);
  padding: 20px 14px 18px;
  text-align: center;
  background: #fff;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  cursor: default;
  position: relative;
}

.aff-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px -12px rgba(8, 29, 69, .16);
  border-color: var(--gold);
}

/* Label pill */
.aff-label {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.aff-label.affiliated {
  background: #fff4cc;
  color: #a06b00;
}

.aff-label.approved {
  background: #e0edff;
  color: var(--royal);
}

.aff-label.registered {
  background: #e8f5e9;
  color: #2e7d32;
}

.aff-label.recognized {
  background: #f3e5f5;
  color: #7b1fa2;
}

.aff-label.accredited {
  background: #fce4ec;
  color: #c62828;
}

/* Logo box */
.aff-logo-box {
  width: 90px;
  height: 90px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  background: var(--cream);
  overflow: hidden;
  transition: border-color .3s;
}

.aff-card:hover .aff-logo-box {
  border-color: var(--gold);
}

.aff-logo-box img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* Initials fallback */
.aff-initials {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .02em;
  font-family: 'Outfit', sans-serif;
}

.aff-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-deep);
  line-height: 1.4;
  margin: 0;
}

/* 5-col grid for accreditation (5 items) */
.aff-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

@media(max-width:1100px) {
  .aff-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media(max-width:600px) {
  .aff-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* FOOTER */