/* ==========================================================================
   EE88 Footer E-E-A-T Styles - Chuẩn SEO E-E-A-T theo September 2025 QRG
   ========================================================================== */

/* Author Box */
.ee88-footer-author {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ee88-author-box {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ee88-author-info {
  flex: 1;
  min-width: 250px;
}

.ee88-author-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.ee88-author-name {
  font-size: 13px;
  color: #ffffff;
  margin: 0 0 2px 0;
  font-weight: 600;
  line-height: 1.4;
}

.ee88-author-name a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.4);
}

.ee88-author-name a:hover {
  color: #4caf50;
  border-bottom-color: #4caf50;
}

.ee88-author-credentials {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  line-height: 1.4;
}

.ee88-verification-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ee88-badge {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
  padding: 5px 11px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  border: 1px solid rgba(76, 175, 80, 0.4);
  letter-spacing: 0.3px;
}

/* Trust Badges */
.ee88-footer-trust {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ee88-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  padding: 6px 11px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ee88-trust-badge:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
  color: rgba(255, 255, 255, 0.85);
}

.ee88-trust-badge svg {
  flex-shrink: 0;
}

.ee88-trust-badge .badge-label {
  font-weight: 600;
}

.ee88-trust-badge .badge-secure {
  color: #2196f3;
  font-weight: 600;
}

.ee88-trust-badge .badge-license {
  color: #4caf50;
  font-weight: 600;
}

.ee88-trust-badge .badge-age {
  background: #ffc107;
  color: #000;
  padding: 2px 7px;
  border-radius: 3px;
  font-weight: 800;
  font-size: 11px;
  line-height: 1;
}

.ee88-trust-badge .badge-help {
  color: #ce93d8;
}

/* Disclaimer */
.ee88-footer-disclaimer {
  margin-top: 14px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  max-width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ee88-footer-disclaimer p {
  margin: 0 0 6px 0;
}

.ee88-footer-disclaimer strong {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.ee88-footer-disclaimer a {
  color: #4caf50;
  text-decoration: underline;
}

.ee88-footer-disclaimer a:hover {
  color: #66bb6a;
}

/* Last Updated */
.ee88-footer-updated {
  margin-top: 10px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ee88-footer-updated .ee88-updated-icon {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #4caf50;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  box-shadow: 0 0 6px rgba(76, 175, 80, 0.6);
}

/* Override Flatsome footer-layout problem: keep things left-aligned, full-width */
.absolute-footer .container.clearfix {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.absolute-footer .footer-primary,
.absolute-footer .footer-secondary {
  float: none !important;
  width: 100% !important;
  text-align: center !important;
  padding: 0 !important;
}

.absolute-footer .footer-nav {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.absolute-footer .footer-nav li {
  margin: 0 !important;
}

.absolute-footer .copyright-footer {
  text-align: center;
  margin-bottom: 4px;
}

/* Legal links styling */
.ee88-legal-link a,
.ee88-about-link a,
.absolute-footer .footer-nav a {
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 12px;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

.ee88-legal-link a:hover,
.ee88-about-link a:hover,
.absolute-footer .footer-nav a:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08);
}

/* Responsive */
@media (max-width: 768px) {
  .ee88-author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .ee88-author-info {
    min-width: 100%;
  }

  .ee88-verification-badge {
    width: 100%;
    justify-content: center;
  }

  .ee88-footer-trust {
    justify-content: center;
  }

  .ee88-trust-badge {
    font-size: 10px;
    padding: 5px 9px;
  }

  .ee88-footer-disclaimer {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .ee88-footer-trust {
    flex-direction: column;
    align-items: stretch;
  }

  .ee88-trust-badge {
    justify-content: center;
  }
}

/* Hide H2 visually but keep accessible for screen readers */
.ee88-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;
}

/* ==========================================================================
   EE88 Footer Widgets E-E-A-T Enhancement
   NAP Block, Recent Posts with Date, Schema Microdata
   ========================================================================== */

/* NAP Block */
.ee88-nap-block {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ee88-nap-block h4 {
  color: #ffffff;
  font-size: 13px;
  margin: 0 0 8px 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.ee88-nap-block .nap-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.ee88-nap-block .nap-row svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.ee88-nap-block .nap-row strong {
  color: #ffffff;
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
  font-weight: 600;
}

.ee88-nap-block .nap-row a {
  color: #4caf50;
  text-decoration: none;
}

.ee88-nap-block .nap-row a:hover {
  color: #66bb6a;
  text-decoration: underline;
}

/* Recent Posts (replace Flatsome default) */
.ee88-recent-posts {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ee88-recent-posts li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ee88-recent-posts li:last-child {
  border-bottom: none;
}

.ee88-recent-posts a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.ee88-recent-posts a:hover {
  color: #4caf50;
}

.ee88-recent-posts .post-date {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 400;
}

.ee88-recent-posts .post-date svg {
  flex-shrink: 0;
}

/* About Column Footer */
.ee88-footer-about-block {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ee88-footer-about-block p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
  margin: 0 0 10px 0;
}

.ee88-footer-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ee88-footer-stats .stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
}

.ee88-footer-stats .stat strong {
  color: #4caf50;
  font-weight: 700;
}

/* Flat list links in footer columns */
.ee88-col-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ee88-col-links li {
  margin: 0 0 8px 0;
  padding: 0;
}

.ee88-col-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.ee88-col-links a::before {
  content: "›";
  color: #4caf50;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
}

.ee88-col-links a:hover {
  color: #ffffff;
  transform: translateX(2px);
}

/* Strong heading style for column titles in dark footer */
.footer-widgets.dark .ee88-col-heading {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 14px 0;
  position: relative;
  padding-bottom: 8px;
}

.footer-widgets.dark .ee88-col-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, #4caf50, transparent);
}

/* Responsive */
@media (max-width: 768px) {
  .ee88-nap-block .nap-row {
    font-size: 11px;
  }
  .ee88-recent-posts a {
    font-size: 12px;
  }
}
