/* ============================================
   Certified Professionals Directory - Modern Design
   Accessible, Responsive, Production-Ready
   ============================================ */

/* ===== Hero Section ===== */
.cpd-hero {
  background-image: linear-gradient(
      100deg,
      rgba(30, 41, 59, 0.92) 0%,
      rgba(45, 55, 72, 0.8) 35%,
      rgba(55, 65, 81, 0.5) 60%,
      rgba(100, 116, 139, 0.25) 100%
    ),
    url("/e15/images/business-apps/certified-professionals123.jpg");
  background-size: cover;
  background-position: center 35%;
  padding: 60px 0 55px;
}

.cpd-hero-content {
  max-width: 800px;
}

.cpd-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 30px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.85em;
  font-weight: 600;
  margin-bottom: 16px;
}

.cpd-hero-label i {
  color: #ffc107;
}

.cpd-hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.cpd-btn-anchor {
  position: relative;
}

.cpd-arrow-bounce {
  font-size: 0.75em;
  margin-left: 4px;
  animation: bounceDown 1.5s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.cpd-btn-anchor:hover .cpd-arrow-bounce {
  animation: none;
  transform: translateY(2px);
}

/* ===== Stats Section ===== */
/* ===== Hero Flex Layout ===== */
.cpd-hero-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 100%;
}

.cpd-hero-text {
  flex: 1;
  max-width: 600px;
}

/* Stats - Right Side, Aligned to Edge */
.cpd-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 0;
  margin-left: auto;
  margin-right: 0;
  width: auto;
  flex-shrink: 0;
}

.cpd-stat-item {
  text-align: center;
  padding: 12px 8px;
}

.cpd-stat-value {
  display: block;
  font-size: 2.4em;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.cpd-stat-label {
  display: block;
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
  font-weight: 500;
  white-space: nowrap;
}

.cpd-stat-divider {
  height: 1px;
  width: 100%;
  background: rgba(255, 255, 255, 0.2);
}

/* Responsive - Stack on smaller screens */
@media (max-width: 992px) {
  .cpd-hero-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .cpd-hero-text {
    max-width: none;
  }

  .cpd-stats {
    flex-direction: row;
    width: 100%;
    justify-content: center;
    gap: 24px;
    padding: 20px 24px;
  }

  .cpd-stat-divider {
    height: auto;
    width: 1px;
    align-self: stretch;
  }

  .cpd-stat-item {
    padding: 8px;
  }
}

@media (max-width: 576px) {
  .cpd-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .cpd-stat-divider {
    display: none;
  }

  .cpd-stat-value {
    font-size: 1.8em;
  }

  .cpd-stat-label {
    font-size: 0.75em;
    white-space: normal;
  }
}
/* ===== Filters Section ===== */
.cpd-filters-section {
  padding: 28px 0;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.cpd-filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
}

.cpd-search-wrap {
  position: relative;
  flex: 1;
  min-width: 250px;
  max-width: 350px;
}

.cpd-search-wrap i:first-child {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}

.cpd-search-input {
  width: 100%;
  padding: 12px 40px 12px 42px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 0.95em;
  background: white;
  transition: all 0.25s ease;
}

.cpd-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.cpd-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  background: var(--bg-light);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: all 0.2s ease;
}

.cpd-search-clear:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.cpd-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cpd-filter-label {
  font-size: 0.75em;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cpd-filter-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cpd-filter-btn {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  font-size: 0.85em;
  font-weight: 600;
  color: var(--text-medium);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.cpd-filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.cpd-filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.cpd-filter-btn i {
  font-size: 0.7em;
}

.cpd-results-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.9em;
  color: var(--text-medium);
}

.cpd-reset-filters {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: none;
  background: none;
  color: var(--primary-dark);
  font-size: 0.9em;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.cpd-reset-filters:hover {
  background: var(--primary-light);
}

/* ===== Country Flags (CSS-based for compatibility) ===== */
.cpd-flag {
  display: inline-block;
  width: 24px;
  height: 18px;
  border-radius: 3px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.cpd-flag-de {
  background: linear-gradient(to bottom, #000 0%, #000 33.33%, #dd0000 33.33%, #dd0000 66.66%, #ffcc00 66.66%, #ffcc00 100%);
}

.cpd-flag-it {
  background: linear-gradient(to right, #009246 0%, #009246 33.33%, #fff 33.33%, #fff 66.66%, #ce2b37 66.66%, #ce2b37 100%);
}

.cpd-flag-at {
  background: linear-gradient(to bottom, #ed2939 0%, #ed2939 33.33%, #fff 33.33%, #fff 66.66%, #ed2939 66.66%, #ed2939 100%);
}

.cpd-flag-es {
  background: linear-gradient(to bottom, #aa151b 0%, #aa151b 25%, #f1bf00 25%, #f1bf00 75%, #aa151b 75%, #aa151b 100%);
}

.cpd-flag-ch {
  background: #ff0000;
  position: relative;
}

.cpd-flag-ch::before,
.cpd-flag-ch::after {
  content: '';
  position: absolute;
  background: white;
}

.cpd-flag-ch::before {
  width: 60%;
  height: 20%;
  top: 40%;
  left: 20%;
}

.cpd-flag-ch::after {
  width: 20%;
  height: 60%;
  top: 20%;
  left: 40%;
}

.cpd-flag-ae {
  background: linear-gradient(to bottom, #00732f 0%, #00732f 33.33%, #fff 33.33%, #fff 66.66%, #000 66.66%, #000 100%);
  position: relative;
}

.cpd-flag-ae::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 25%;
  background: #ff0000;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* ===== Directory Section ===== */
.cpd-directory-section {
  padding: 40px 0 60px;
  background: white;
}

/* ===== Company Accordion ===== */
.cpd-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cpd-company-card {
  background: var(--bg-light);
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s ease;
}

.cpd-company-card:hover {
  border-color: var(--primary);
}

.cpd-company-card.cpd-card-open {
  border-color: var(--primary);
  box-shadow: 0 8px 30px var(--primary-glow);
}

.cpd-company-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s ease;
}

.cpd-company-header:hover {
  background: rgba(107, 184, 190, 0.06);
}

.cpd-company-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cpd-company-info .cpd-flag {
  width: 32px;
  height: 24px;
}

.cpd-company-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cpd-company-name {
  font-size: 1.1em;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.cpd-company-address {
  font-size: 0.85em;
  color: var(--text-light);
  margin: 0;
}

.cpd-company-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cpd-company-count {
  font-size: 0.85em;
  color: var(--text-medium);
  font-weight: 500;
  padding: 4px 12px;
  background: white;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.cpd-company-toggle {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: transform 0.3s ease;
}

.cpd-card-open .cpd-company-toggle {
  transform: rotate(180deg);
}

.cpd-card-open .cpd-company-toggle i {
  color: var(--primary);
}

/* Company Content (Expanded) */
.cpd-company-content {
  padding: 0 24px 24px;
  border-top: 1px solid var(--border);
  background: white;
}

.cpd-company-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 16px;
}

.cpd-company-contact span,
.cpd-company-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9em;
  color: var(--text-medium);
}

.cpd-company-contact a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.cpd-company-contact a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.cpd-company-contact i {
  color: var(--primary);
  font-size: 0.95em;
}

/* ===== Table Styles ===== */
.cpd-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cpd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92em;
}

.cpd-table thead {
  background: var(--bg-light);
}

.cpd-table th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.85em;
  letter-spacing: 0.3px;
  border-bottom: 2px solid var(--border);
}

.cpd-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background 0.2s ease;
}

.cpd-table tbody tr:last-child {
  border-bottom: none;
}

.cpd-table tbody tr:hover {
  background: rgba(107, 184, 190, 0.04);
}

.cpd-table td {
  padding: 14px;
  vertical-align: middle;
}

.cpd-th-name { width: 22%; }
.cpd-th-version { width: 10%; text-align: center; }
.cpd-th-modules { width: 50%; }
.cpd-th-valid { width: 12%; text-align: center; }

.cpd-td-name {
  font-weight: 600;
  color: var(--text-dark);
}

.cpd-td-version {
  text-align: center;
}

.cpd-td-valid {
  text-align: center;
}

/* ===== Version Badge ===== */
.cpd-version-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85em;
  font-weight: 600;
  color: var(--text-medium);
}

/* ===== Modules Grid ===== */
.cpd-modules-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cpd-module-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 85px;
}

.cpd-module-code {
  font-weight: 700;
  font-size: 0.8em;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 22px;
}

.cpd-module-level {
  display: flex;
  align-items: center;
  gap: 1px;
}

.cpd-module-level i {
  font-size: 0.65em;
}

/* Level Colors */
.cpd-level-associate i { color: #9dc3e7; }
.cpd-level-specialist i { color: #6bb8be; }
.cpd-level-expert i { color: #ffc000; }

.cpd-level-none {
  color: var(--text-light);
}

.cpd-dash {
  font-size: 1.1em;
  line-height: 1;
  opacity: 0.5;
}

.cpd-pm-badge {
  font-size: 0.7em;
  font-weight: 700;
  padding: 2px 6px;
  background: #e2e8f0;
  color: #64748b;
  border-radius: 4px;
}

/* ===== Validity Badge ===== */
.cpd-valid-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.85em;
  font-weight: 700;
}

.cpd-valid-active {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.cpd-valid-expired {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

/* ===== Expired Row ===== */
.cpd-row-expired {
  opacity: 0.55;
}

.cpd-row-expired:hover {
  opacity: 0.75;
}

.cpd-row-expired .cpd-td-name {
  color: var(--text-medium);
}
/* ===== Legend Section ===== */
.cpd-legend-section {
  padding: 60px 0;
  background: var(--bg-light);
}

.cpd-legend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cpd-legend-card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--border);
}

.cpd-legend-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.cpd-legend-header i {
  font-size: 1.4em;
  color: var(--primary);
}

.cpd-legend-header h3 {
  margin: 0;
  font-size: 1.1em;
  font-weight: 700;
  color: var(--text-dark);
}

/* Legend Levels */
.cpd-legend-levels {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cpd-legend-level {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.cpd-legend-stars {
  display: flex;
  gap: 2px;
  min-width: 60px;
  padding-top: 2px;
}

.cpd-legend-stars i {
  font-size: 0.9em;
}

.cpd-legend-level-info strong {
  display: block;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.cpd-legend-level-info p {
  margin: 0;
  font-size: 0.85em;
  color: var(--text-light);
  line-height: 1.4;
}

/* Legend Modules */
.cpd-legend-modules {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cpd-legend-module {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.cpd-legend-module-code {
  min-width: 36px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8em;
  color: var(--text-dark);
}

.cpd-legend-module-info strong {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9em;
  margin-bottom: 2px;
}

.cpd-legend-module-info p {
  margin: 0;
  font-size: 0.8em;
  color: var(--text-light);
  line-height: 1.4;
}

/* Legend Renewal */
.cpd-legend-renewal {
  display: flex;
  flex-direction: column;
}

.cpd-legend-renewal .cpd-legend-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cpd-renewal-highlight {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.cpd-renewal-years {
  font-size: 3.5em;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.cpd-renewal-text {
  font-size: 1.2em;
  font-weight: 600;
  color: var(--text-medium);
}

.cpd-legend-renewal .cpd-legend-content > p {
  color: var(--text-medium);
  line-height: 1.6;
  margin: 0 0 20px;
  font-size: 0.95em;
}

.cpd-validity-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.cpd-validity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9em;
  color: var(--text-medium);
}

/* ===== CTA Section ===== */
.cpd-cta-section {
  padding: 60px 0;
  background: white;
}

.cpd-cta-card {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 40px 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 24px;
  color: white;
  box-shadow: 0 16px 48px var(--primary-glow);
  position: relative;
  overflow: hidden;
}

.cpd-cta-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cpd-cta-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  flex-shrink: 0;
}

.cpd-cta-content {
  flex: 1;
}

.cpd-cta-content h3 {
  font-weight: 700;
  font-size: 1.6em;
  margin: 0 0 8px;
  color: white;
}

.cpd-cta-content p {
  margin: 0;
  opacity: 0.95;
  line-height: 1.6;
  font-size: 1.05em;
}

.cpd-cta-actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}

.cpd-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cpd-cta-btn-primary {
  background: white;
  color: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cpd-cta-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: var(--primary-dark);
}

.cpd-cta-btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.cpd-cta-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  color: white;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
  .cpd-legend-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cpd-legend-renewal {
    grid-column: span 2;
  }
}

@media (max-width: 992px) {
  .cpd-hero {
    padding: 50px 0 45px;
  }

  .cpd-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .cpd-stat-divider {
    display: none;
  }

  .cpd-stat-item {
    min-width: 80px;
  }

  .cpd-filters-bar {
    gap: 14px;
  }

  .cpd-search-wrap {
    max-width: none;
    flex-basis: 100%;
  }

  .cpd-filter-group {
    flex: 1;
    min-width: 120px;
  }

  .cpd-legend-grid {
    grid-template-columns: 1fr;
  }

  .cpd-legend-renewal {
    grid-column: auto;
  }

  .cpd-cta-card {
    flex-direction: column;
    text-align: center;
    padding: 36px;
  }

  .cpd-cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cpd-cta-btn {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .cpd-hero {
    padding: 40px 0 35px;
  }

  .cpd-hero h1 {
    font-size: 1.9rem;
  }

  .cpd-hero-actions {
    flex-direction: column;
  }

  .cpd-hero-actions .ws-hero-btn {
    width: 100%;
    justify-content: center;
  }

  .cpd-stats {
    padding: 18px 20px;
  }

  .cpd-stat-value {
    font-size: 1.8em;
  }

  .cpd-filters-section {
    position: static;
    padding: 20px 0;
  }

  .cpd-filter-buttons {
    flex-wrap: wrap;
  }

  .cpd-filter-btn {
    padding: 6px 10px;
    font-size: 0.8em;
  }

  .cpd-company-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
  }

  .cpd-company-meta {
    width: 100%;
    justify-content: space-between;
  }

  .cpd-company-content {
    padding: 0 18px 18px;
  }

  .cpd-table th,
  .cpd-table td {
    padding: 10px 8px;
  }

  .cpd-th-name { width: 30%; }
  .cpd-th-version { width: 15%; }
  .cpd-th-modules { width: 40%; }
  .cpd-th-valid { width: 15%; }

  .cpd-modules-grid {
    gap: 6px;
  }

  .cpd-module-item {
    padding: 5px 8px;
    min-width: 75px;
  }

  .cpd-legend-card {
    padding: 22px;
  }

  .cpd-cta-card {
    padding: 28px;
  }

  .cpd-cta-icon {
    width: 64px;
    height: 64px;
    font-size: 1.6em;
  }

  .cpd-cta-content h3 {
    font-size: 1.35em;
  }
}

@media (max-width: 576px) {
  .cpd-hero {
    padding: 35px 0 30px;
  }

  .cpd-hero h1 {
    font-size: 1.6rem;
  }

  .cpd-hero-label {
    font-size: 0.8em;
    padding: 6px 12px;
  }

  .cpd-stats {
    width: 100%;
    justify-content: space-around;
    padding: 16px;
  }

  .cpd-stat-value {
    font-size: 1.5em;
  }

  .cpd-stat-label {
    font-size: 0.75em;
  }

  .cpd-filters-bar {
    flex-direction: column;
  }

  .cpd-filter-group {
    width: 100%;
  }

  .cpd-company-info .cpd-flag {
    width: 28px;
    height: 20px;
  }

  .cpd-company-name {
    font-size: 1em;
  }

  .cpd-company-contact {
    flex-direction: column;
    gap: 10px;
  }

  /* Mobile table: stack modules vertically */
  .cpd-table thead {
    display: none;
  }

  .cpd-table,
  .cpd-table tbody,
  .cpd-table tr,
  .cpd-table td {
    display: block;
    width: 100%;
  }

  .cpd-table tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
  }

  .cpd-table td {
    padding: 4px 0;
    text-align: left;
  }

  .cpd-td-name {
    font-size: 1em;
    margin-bottom: 8px;
  }

  .cpd-td-version {
    text-align: left;
    margin-bottom: 10px;
  }

  .cpd-td-modules {
    margin-bottom: 10px;
  }

  .cpd-modules-grid {
    justify-content: flex-start;
  }

  .cpd-td-valid {
    text-align: left;
  }

  .cpd-renewal-years {
    font-size: 2.8em;
  }

  .cpd-cta-actions {
    gap: 10px;
  }

  .cpd-cta-btn {
    padding: 12px 20px;
    font-size: 0.95em;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus states */
.cpd-company-header:focus,
.cpd-filter-btn:focus,
.cpd-search-input:focus,
.cpd-cta-btn:focus {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.cpd-company-header:focus-visible,
.cpd-filter-btn:focus-visible,
.cpd-cta-btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cpd-company-card,
  .cpd-company-header,
  .cpd-company-toggle,
  .cpd-filter-btn,
  .cpd-cta-btn,
  .cpd-arrow-bounce {
    transition: none;
    animation: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .cpd-company-card,
  .cpd-legend-card,
  .cpd-module-item {
    border-width: 2px;
  }

  .cpd-valid-active,
  .cpd-valid-expired {
    border-width: 2px;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .cpd-hero {
    background: #f0f0f0 !important;
    padding: 20px 0;
  }

  .cpd-hero h1,
  .cpd-hero p,
  .cpd-hero-label {
    color: #000 !important;
  }

  .cpd-hero-actions,
  .cpd-stats,
  .cpd-filters-section,
  .cpd-cta-section {
    display: none !important;
  }

  .cpd-company-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .cpd-company-content {
    display: block !important;
  }

  .cpd-company-content[hidden] {
    display: block !important;
  }

  .cpd-row-expired {
    opacity: 1;
  }

  a {
    text-decoration: underline;
  }
}
