/**
 * Human Operated - Member Portal Styles
 * Styles for the Company tab in the MemberPress account page
 */

/* Main container */
.mepr-company-tab {
  color: #f0f0f0;
  padding: 30px;
  border-radius: 8px;
}

.mepr-company-tab h3,
.mepr-company-tab h4,
.mepr-company-tab h5 {
  color: #ffffff;
}

.mepr-company-tab p {
  color: #cccccc;
}

.mepr-company-tab a {
  color: #6db3f2;
}

.mepr-company-tab a:hover {
  color: #8cc5ff;
}

/* Logo Notice */
.ho-logo-notice {
  background: #332b00;
  border: 1px solid #665600;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  color: #ffd54f;
}

.ho-logo-notice strong {
  color: #ffeb3b;
}

.ho-logo-notice p {
  margin: 5px 0 0;
  color: #ffd54f;
}

/* Logo Section */
.mepr-company-logo-section {
  margin-bottom: 30px;
  padding: 20px;
  background: #2a2a2a;
  border-radius: 8px;
}

.ho-logo-preview {
  margin-bottom: 15px;
}

.ho-logo-preview img {
  max-width: 250px;
  height: auto;
  border-radius: 4px !important;
  background: #fff;
  padding: 1px;
}

.ho-change-logo-btn {
  background: #333;
  color: #fff;
  border: 1px solid #555;
  padding: 5px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
  margin-bottom: 0;
}

.ho-change-logo-btn:hover {
  background: #444;
}

.ho-cancel-btn {
  background: transparent;
  color: #aaa;
  border: 1px solid #555;
  padding: 5px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 10px;
  margin-bottom: 0;
}

.ho-cancel-btn:hover {
  background: #333;
  color: #fff;
}

/* Upload Field */
.ho-upload-field {
  margin-bottom: 10px;
  margin-top: 20px;
}

.ho-upload-field label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #f0f0f0;
}

.ho-upload-field input[type="file"] {
  color: #f0f0f0;
}

/* Status Badge */
.ho-status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.ho-status-pending,
.ho-status- {
  background: #665600;
  color: #ffd54f;
}

.ho-status-approved {
  background: #1b5e20;
  color: #a5d6a7;
}

.ho-status-rejected {
  background: #b71c1c;
  color: #ef9a9a;
}

.ho-status-expired,
.ho-status-cancelled {
  background: #424242;
  color: #bdbdbd;
}

/* Complete Checkout Button */
.ho-complete-checkout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  /* padding: 6px 14px; */
  /* background: linear-gradient(135deg, #c9a227 0%, #e0b830 100%); */
  color: #e17042 !important;
  text-decoration: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
}

.ho-complete-checkout-btn:hover {
  transform: translateX(1px);
  /* box-shadow: 0 4px 12px rgba(201, 162, 39, 0.3); */
  /* color: #1a1a2e; */
}

.ho-complete-checkout-btn svg {
  flex-shrink: 0;
}

/* Table Wrappers */
.mepr-company-table-wrapper,
.mepr-certification-table-wrapper {
  background: #2a2a2a;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.mepr-company-tab table {
  width: 100%;
  border-collapse: collapse;
}

.mepr-company-tab table th,
.mepr-company-tab table td {
  padding: 10px;
  border-bottom: 1px solid #444;
  color: #f0f0f0;
}

.mepr-company-tab table th {
  text-align: left;
  color: #aaa;
  font-weight: normal;
  width: 40%;
}

.mepr_updated {
  background-color: #def4c5 !important;
  border: 1px solid #4d8c2e !important;
  color: #4d8c2e;
}

/* Website URL Section */
.mepr-website-url-section {
  background: #2a2a2a;
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
}

.mepr-website-url-section h4 {
  margin: 0 0 10px;
  color: #ffffff;
}

.ho-section-description {
  color: #aaa;
  font-size: 14px;
  margin-bottom: 15px;
}

.ho-current-url {
  background: #1a1a1a;
  padding: 12px 15px;
  border-radius: 6px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ho-url-label {
  color: #888;
  font-size: 14px;
}

.ho-current-url a {
  color: #6db3f2;
  word-break: break-all;
}

.ho-website-url-form {
  margin: 0;
}

.ho-url-input-group {
  display: flex;
  gap: 10px;
}

.ho-url-input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #444;
  border-radius: 6px;
  background: #1a1a1a;
  color: #f0f0f0;
  font-size: 14px;
  margin-bottom: 0;
}

.ho-url-input:focus {
  outline: none;
  border-color: #6db3f2;
}

.ho-url-input::placeholder {
  color: #666;
}

/* Badge Disabled Notice */
.ho-badge-disabled-notice {
  background: #1a1a1a;
  border: 1px dashed #444;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
}

.ho-badge-disabled-notice p {
  color: #888;
  margin: 0;
}

/* Badge Section */
.mepr-badge-section {
  background: #2a2a2a;
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
}

/* Badge Section Header */
.ho-badge-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.ho-badge-section-header h4 {
  margin: 0;
}

/* Badge Mode Toggle */
.ho-badge-mode-toggle {
  display: flex;
  align-items: center;
  width: 270px;
}

.ho-toggle-label {
  display: flex !important;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  justify-content: center;
}

.ho-toggle-text {
  color: #f0f0f0;
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

.ho-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.ho-toggle-slider {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  background-color: #555;
  border-radius: 26px;
  transition: background-color 0.3s;
}

.ho-toggle-slider:before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
}

.ho-toggle-input:checked+.ho-toggle-slider {
  background-color: #6db3f2;
}

.ho-toggle-input:checked+.ho-toggle-slider:before {
  transform: translateX(24px);
}

.mepr-badge-preview {
  padding: 20px;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.ho-badge-preview-container {
  text-align: center;
}

.ho-badge-preview-light {
  display: inline-block;
}

.ho-badge-preview-dark {
  display: none;
}

.ho-badge-preview-light img,
.ho-badge-preview-dark img {
  max-width: 150px;
  height: auto;
  /* border-radius: 4px; */
}

/* Badge preview dark - currently no additional styles needed */

.ho-embed-code-container {
  position: relative;
}

.mepr-badge-embed label {
  display: block;
  margin-top: 15px;
  margin-bottom: 5px;
  font-weight: bold;
  color: #f0f0f0;
}

.mepr-badge-embed h5 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: #ffffff;
}

.ho-embed-code {
  width: 100%;
  height: 60px;
  font-family: monospace;
  font-size: 12px;
  padding: 10px;
  border: 1px solid #444;
  border-radius: 4px;
  resize: none;
  background: #1a1a1a;
  color: #00ff88;
}

.ho-copy-btn {
  margin-top: 5px;
  margin-bottom: 15px;
  background: #333;
  color: #fff;
  border: 1px solid #555;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

.ho-copy-btn:hover {
  background: #444;
}

.mepr-badge-pending {
  padding: 15px;
  background: #2a2a2a;
  border-radius: 4px;
  color: #aaa;
}

/* Notices */
.mepr-company-tab .mepr-notice {
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.mepr-company-tab .mepr-success {
  background: #1b5e20;
  border: 1px solid #2e7d32;
  color: #a5d6a7;
}

.mepr-company-tab .mepr-warning {
  background: #332b00;
  border: 1px solid #665600;
  color: #ffd54f;
}

/* Buttons */
.mepr-company-tab .mepr-submit {
  background: #333;
  color: #fff;
  border: 1px solid #555;
  padding: 5px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 0;
  line-height: 1;
}

.mepr-company-tab .mepr-submit:hover {
  background: #444;
}

.mepr-company-tab .mepr-account-action {
  display: inline-block;
  background: #333;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
}

.mepr-company-tab .mepr-account-action:hover {
  background: #444;
  color: #fff;
}

/* ==========================================================================
   Directory Page Styles
   ========================================================================== */

.ho-directory-wrapper {
  padding: 0 !important;
}

.ho-directory-page {
  background: #0a0a0a;
  min-height: 100vh;
  color: #f0f0f0;
}

/* Hero Section */
.ho-directory-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #0d0d1a 50%, #1a1a2e 100%);
  padding: 80px 20px 60px;
  text-align: center;
  border-bottom: 1px solid #333;
  position: relative;
  overflow: hidden;
}

.ho-directory-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(201, 162, 39, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.ho-directory-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.ho-directory-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #c9a227 0%, #f4d03f 50%, #c9a227 100%);
  border-radius: 50%;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.3);
}

.ho-directory-badge-icon svg {
  color: #1a1a2e;
}

.ho-directory-hero h1 {
  color: #ffffff;
  font-size: 2.8rem;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}

.ho-directory-subtitle {
  color: #aaa;
  font-size: 1.15rem;
  line-height: 1.6;
  margin: 0;
}

/* Filters Bar */
.ho-directory-filters {
  background: #111;
  border-bottom: 1px solid #2a2a2a;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.ho-filters-form {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

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

.ho-filter-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  font-weight: 500;
}

.ho-filter-search {
  flex: 1;
  min-width: 250px;
}

.ho-search-input-wrapper {
  position: relative;
}

.ho-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  pointer-events: none;
}

.ho-filter-search input[type=text] {
  width: 100%;
  padding: 12px 12px 12px 44px !important;
  border: 1px solid #333 !important;
  border-radius: 8px;
  background: #1a1a1a;
  color: #f0f0f0 !important;
  font-size: 15px;
  transition: border-color 0.2s;
  margin: 0;
  height: auto !important;
}

.ho-filter-search input:focus {
  outline: none;
  border-color: #c9a227;
}

.ho-filter-search input::placeholder {
  color: #666;
}

.ho-filter-industry,
.ho-filter-sort {
  min-width: 160px;
}

.ho-filter-industry select,
.ho-filter-sort select {
  width: 100%;
  padding: 12px 36px 12px 14px !important;
  border: 1px solid #333 !important;
  border-radius: 8px;
  background: #1a1a1a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: #f0f0f0;
  font-size: 15px;
  cursor: pointer;
  height: auto !important;
  appearance: none;
  margin: 0;
  transition: border-color 0.2s;
}

.ho-filter-industry select:focus,
.ho-filter-sort select:focus {
  outline: none;
  border-color: #c9a227;
}

.ho-filter-submit {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.ho-filter-btn {
  padding: 18px 24px;
  background: #e17043;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin: 0;
  line-height: 1;
}

.ho-filter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.3);
}

.ho-clear-filters {
  color: #888;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}

.ho-clear-filters:hover {
  color: #c9a227;
}

/* Results Header */
.ho-directory-content {
  padding: 40px 0 60px;
}

.ho-directory-results-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #2a2a2a;
}

.ho-directory-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.ho-count-number {
  font-size: 2rem;
  font-weight: 700;
  color: #e17043;
}

.ho-count-label {
  font-size: 1rem;
  color: #888;
}

.ho-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ho-active-filter {
  display: inline-block;
  padding: 6px 12px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 20px;
  font-size: 12px;
  color: #aaa;
}

/* Directory Grid */
.ho-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* Company Card */
.ho-directory-card {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ho-directory-card:hover {
  transform: translateY(-6px);
  border-color: #e17043;
  box-shadow: 0 12px 40px rgba(201, 162, 39, 0.15);
}

/* Card Header */
.ho-card-header {
  position: relative;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #2a2a2a;
}

.ho-card-logo {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
}

.ho-card-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.ho-card-logo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #888;
}

.ho-card-verified-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

/* Card Body */
.ho-card-body {
  flex: 1;
  padding: 20px;
  text-align: center;
}

.ho-card-name {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 6px;
}

.ho-card-industry {
  display: inline-block;
  font-size: 0.8rem;
  color: #e17043;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0;
}

.ho-card-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.85rem;
  color: #666;
  margin-top: 6px;
}

.ho-card-location svg {
  flex-shrink: 0;
  color: #999;
}

.ho-card-commitments {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  display: none;
}

.ho-commitment-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #fcd17f;
  border: 1px solid #fcd17f;
  border-radius: 20px;
  font-size: 11px;
  color: #000;
}

.ho-commitment-tag svg {
  flex-shrink: 0;
}

/* Card Footer */
.ho-card-footer {
  padding: 16px 20px;
  border-top: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ho-card-certified-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #fff;
  line-height: 2;
}

.ho-card-certified-date svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.ho-card-view-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: #e17043;
  transition: gap 0.2s;
}

.ho-directory-card:hover .ho-card-view-link {
  gap: 8px;
}

/* Empty State */
.ho-directory-empty {
  text-align: center;
  padding: 80px 20px;
}

.ho-empty-icon {
  color: #333;
  margin-bottom: 24px;
}

.ho-directory-empty h3 {
  color: #fff;
  font-size: 1.5rem;
  margin: 0 0 12px;
}

.ho-directory-empty p {
  color: #888;
  font-size: 1rem;
  margin: 0 0 24px;
}

.ho-empty-reset-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: border-color 0.2s;
}

.ho-empty-reset-btn:hover {
  border-color: #c9a227;
}

/* CTA Section */
.ho-directory-cta {
  background: linear-gradient(135deg, #1a1a2e 0%, #0d0d1a 100%);
  padding: 60px 20px;
  text-align: center;
  border-top: 1px solid #2a2a2a;
}

.ho-cta-content {
  max-width: 500px;
  margin: 0 auto;
}

.ho-directory-cta h2 {
  color: #fff;
  font-size: 1.8rem;
  margin: 0 0 12px;
}

.ho-directory-cta p {
  color: #888;
  font-size: 1rem;
  margin: 0 0 24px;
}

.ho-cta-btn {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, #c9a227 0%, #e0b830 100%);
  color: #1a1a2e;
  text-decoration: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.ho-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .ho-directory-hero {
    padding: 50px 20px 40px;
  }

  .ho-directory-hero h1 {
    font-size: 2rem;
  }

  .ho-filters-form {
    flex-direction: column;
  }

  .ho-filter-search,
  .ho-filter-industry,
  .ho-filter-sort {
    min-width: 100%;
  }

  .ho-filter-submit {
    width: 100%;
    justify-content: center;
  }

  .ho-directory-results-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .ho-directory-grid {
    grid-template-columns: 1fr;
  }

  .ho-card-footer {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   Certificate / Verification Page Styles
   ========================================================================== */

.ho-verification-page {
  background: #3c3c3c;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  padding-bottom: 60px;
}

.ho-verification-container {
  max-width: 700px;
  width: 100%;
}

/* Certificate Card */
.ho-certificate {
  position: relative;
}

.ho-certificate-border {
  background: linear-gradient(135deg, #c9a227 0%, #f4d03f 25%, #c9a227 50%, #f4d03f 75%, #c9a227 100%);
  padding: 4px;
  border-radius: 4px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(201, 162, 39, 0.3),
    inset 0 0 60px rgba(201, 162, 39, 0.1);
}

.ho-border-inactive {
  background: linear-gradient(135deg, #555 0%, #777 25%, #555 50%, #777 75%, #555 100%);
}

.ho-certificate-inner {
  background: linear-gradient(180deg, #fefefe 0%, #f8f6f0 50%, #fefefe 100%);
  border-radius: 2px;
  padding: 50px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Watermark */
.ho-certificate-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-size: 8rem;
  font-weight: 900;
  color: rgba(201, 162, 39, 0.04);
  letter-spacing: 20px;
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}

/* Header with Seal */
.ho-certificate-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
  flex-direction: column;
  align-items: center;
}

.ho-certificate-seal {
  flex-shrink: 0;
}

.ho-seal-outer {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #c9a227 0%, #f4d03f 50%, #c9a227 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 15px rgba(201, 162, 39, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.ho-seal-inactive .ho-seal-outer {
  background: linear-gradient(135deg, #666 0%, #888 50%, #666 100%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ho-seal-inner {
  width: 58px;
  height: 58px;
  background: linear-gradient(180deg, #1a1a2e 0%, #0d0d1a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f4d03f;
}

.ho-seal-inactive .ho-seal-inner {
  color: #888;
}

.ho-certificate-org {
  text-align: center;
}

.ho-certificate-org-name {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.ho-certificate-org-tagline {
  display: block;
  font-size: 0.75rem;
  color: #666;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Title Section */
.ho-certificate-title-section {
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.ho-certificate-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.2rem;
  font-weight: 400;
  color: #1a1a2e;
  margin: 0 0 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.ho-title-inactive {
  color: #666;
}

.ho-certificate-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 15px 0;
}

.ho-certificate-divider span {
  height: 1px;
  width: 80px;
  background: linear-gradient(90deg, transparent 0%, #c9a227 50%, transparent 100%);
}

.ho-certificate-divider svg {
  color: #c9a227;
}

.ho-certificate-subtitle {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  font-style: italic;
  color: #666;
  margin: 0;
}

/* Recipient / Company */
.ho-certificate-recipient {
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.ho-certificate-logo {
  width: 100px;
  height: 100px;
  margin: 0 auto 15px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  /* display: flex; */
  /* align-items: center; */
  /* justify-content: center; */
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ho-certificate-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ho-certificate-company-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
  border-bottom: 2px solid #c9a227;
  display: inline-block;
  padding-bottom: 5px;
}

.ho-certificate-industry {
  font-size: 0.9rem;
  color: #666;
  margin: 10px 0 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ho-certificate-location {
  font-size: 0.85rem;
  color: #888;
  margin: 5px 0 0;
}

/* Statement */
.ho-certificate-statement {
  max-width: 500px;
  margin: 0 auto 30px;
  position: relative;
  z-index: 1;
}

.ho-certificate-statement p {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  margin: 0;
}

.ho-certificate-statement strong {
  color: #1a1a2e;
}

/* Commitments */
.ho-certificate-commitments {
  background: #f8f6f0;
  border: 1px solid #e8e4d9;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.ho-certificate-commitments h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #888;
  margin: 0 0 15px;
}

.ho-commitment-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.ho-commitment-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #d4c896;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: #1a1a2e;
}

.ho-commitment-badge svg {
  color: #2e7d32;
  flex-shrink: 0;
}

/* Certificate Details */
.ho-certificate-details {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.ho-certificate-detail {
  text-align: center;
}

.ho-detail-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 4px;
}

.ho-detail-value {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a2e;
}

.ho-status-active {
  color: #2e7d32 !important;
}

/* Official Badge */
.ho-certificate-badge-section {
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.ho-certificate-official-badge {
  max-width: 120px;
  height: auto;
  opacity: 0.9;
}

/* Footer */
.ho-certificate-footer {
  border-top: 1px solid #e0e0e0;
  padding-top: 20px;
  position: relative;
  z-index: 1;
}

.ho-certificate-verification {
  margin-bottom: 15px;
}

.ho-verify-label {
  display: block;
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 4px;
}

.ho-verify-url {
  display: block;
  font-size: 0.8rem;
  color: #1a1a2e;
  word-break: break-all;
}

.ho-certificate-directory-link {
  display: inline-block;
  font-size: 0.85rem;
  color: #c9a227;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.ho-certificate-directory-link:hover {
  color: #a68320;
  text-decoration: underline;
}

/* Inactive Certificate Status Display */
.ho-certificate-inactive .ho-certificate-inner {
  background: linear-gradient(180deg, #f5f5f5 0%, #eee 50%, #f5f5f5 100%);
}

.ho-certificate-status-display {
  margin: 30px 0;
  position: relative;
  z-index: 1;
}

.ho-cert-status {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ho-cert-status-pending {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffc107;
}

.ho-cert-status-rejected,
.ho-cert-status-expired,
.ho-cert-status-cancelled {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.ho-status-description {
  font-size: 0.9rem;
  color: #666;
  margin: 15px 0 0;
}

/* Responsive */
@media (max-width: 600px) {
  .ho-certificate-inner {
    padding: 30px 20px;
  }

  .ho-certificate-header {
    flex-direction: column;
    gap: 15px;
  }

  .ho-certificate-org {
    text-align: center;
  }

  .ho-certificate-org-name {
    font-size: 1.3rem;
  }

  .ho-certificate-title {
    font-size: 1.6rem;
    letter-spacing: 1px;
  }

  .ho-certificate-company-name {
    font-size: 1.4rem;
  }

  .ho-certificate-watermark {
    font-size: 4rem;
  }

  .ho-certificate-details {
    flex-direction: column;
    gap: 15px;
  }

  .ho-commitment-grid {
    flex-direction: column;
    align-items: center;
  }
}

/* =====================================================
   Homepage Certificate CTA Box - Vintage Style
   ===================================================== */

/* =====================================================
   Homepage Certificate CTA Box - Vintage Style
   ===================================================== */

.ho-certificate-cta .col-inner {
  position: relative;
  transition: all 0.3s ease;
}

/* Outer decorative border - vintage double-line style */
.ho-certificate-cta .col-inner::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 2px solid #8b6914;
  opacity: 0;
  transition: opacity 0.4s ease, top 0.4s ease, left 0.4s ease, right 0.4s ease, bottom 0.4s ease;
  pointer-events: none;
}

/* Inner decorative border */
.ho-certificate-cta .col-inner::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  bottom: 14px;
  border: 1px solid #a67c00;
  opacity: 0;
  transition: opacity 0.4s ease 0.1s, top 0.4s ease, left 0.4s ease, right 0.4s ease, bottom 0.4s ease;
  pointer-events: none;
}

/* Hover state */
.ho-certificate-cta .col-inner:hover {
  /* transform: scale(1.02); */
}

.ho-certificate-cta .col-inner:hover::before {
  opacity: 1;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
}

.ho-certificate-cta .col-inner:hover::after {
  opacity: 0.7;
  top: 18px;
  left: 18px;
  right: 18px;
  bottom: 18px;
}

/* Decorative corner flourishes */
.ho-certificate-cta .col-inner .ho-corner {
  position: absolute;
  width: 30px;
  height: 30px;
  opacity: 0;
  transition: opacity 0.4s ease 0.2s;
  pointer-events: none;
}

.ho-certificate-cta .col-inner .ho-corner::before,
.ho-certificate-cta .col-inner .ho-corner::after {
  content: '';
  position: absolute;
  background: #8b6914;
}

.ho-certificate-cta .col-inner * {
  transition: all 200ms linear;
}

.ho-certificate-cta .col-inner:hover * {
  transform: scale(0.98);
}

.ho-certificate-cta .col-inner:hover a.button{
  transform: translateY(-5px) scale(0.98) !important;
}

.ho-certificate-cta .col-inner .ho-corner::before {
  width: 100%;
  height: 2px;
}

.ho-certificate-cta .ho-corner::after {
  width: 2px;
  height: 100%;
}

.ho-certificate-cta .ho-corner-tl {
  top: 5px;
  left: 5px;
}

.ho-certificate-cta .ho-corner-tr {
  top: 5px;
  right: 5px;
  transform: scaleX(-1) !important;
}

.ho-certificate-cta .ho-corner-bl {
  bottom: 5px;
  left: 5px;
  transform: scaleY(-1) !important;
}

.ho-certificate-cta .ho-corner-br {
  bottom: 5px;
  right: 5px;
  transform: scale(-1) !important;
}

.ho-certificate-cta:hover .ho-corner {
  opacity: 1;
}

/* Script to auto-inject corners - added via wp_footer */

/* ============================================
   Directory Coming Soon
   ============================================ */
.ho-directory-coming-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 60px 20px;
}

.ho-coming-soon-content {
  text-align: center;
  max-width: 600px;
  background: linear-gradient(135deg, #00000073 0%, #8a8a8a38 100%);
  border: 2px solid #af9459;
  border-radius: 16px;
  padding: 60px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.ho-coming-soon-icon {
  color: var(--ho-accent, #c9a962);
  margin-bottom: 24px;
}

.ho-coming-soon-icon svg {
  opacity: 0.8;
}

.ho-coming-soon-content h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 16px 0;
  letter-spacing: 0.5px;
}

.ho-coming-soon-content p {
  font-size: 1.2rem;
  color: #5a6c7d;
  margin: 20px 0 25px 0;
  line-height: 1.6;
  text-wrap: balance;
  font-weight: 700;
}

.ho-coming-soon-content p:last-child {
  font-size: 1rem;
  margin: 0 !important;
  font-weight: 400;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .ho-coming-soon-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-color: #2a2a4a;
  }
  
  .ho-coming-soon-content h2 {
    color: #f0f0f0;
  }
  
  .ho-coming-soon-content p {
    color: #a0a0a0;
  }
}
