
/* ================================================================
   PHỤNG HOÀN ACADEMY — FOOTER DÙNG CHUNG TOÀN HỆ THỐNG
   Áp dụng cho: trang chủ, thần số học, đào tạo, sinh trắc vân tay,
   thư pháp, khóa học và e-book.
   ================================================================ */
.pha-site-footer,
.pha-site-footer * { box-sizing: border-box; }

.pha-site-footer {
  position: relative;
  z-index: 20;
  width: 100%;
  margin: 0;
  padding: 58px 0 28px;
  color: rgba(255, 247, 233, .72);
  font-family: "Be Vietnam Pro", Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 12% 0%, rgba(201, 162, 75, .10), transparent 28%),
    radial-gradient(circle at 92% 100%, rgba(122, 29, 43, .15), transparent 34%),
    #081f21;
  border-top: 1px solid rgba(201, 162, 75, .24);
  text-align: left;
}
.pha-site-footer a { color: inherit; }
.pha-footer-wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}
.pha-footer-grid {
  display: grid;
  grid-template-columns: 1.15fr .9fr .8fr;
  gap: clamp(30px, 5vw, 72px);
  align-items: start;
}
.pha-footer-title {
  margin: 0 0 18px;
  color: #fffaf0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.38rem, 2.1vw, 1.78rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .01em;
}
.pha-footer-description {
  max-width: 510px;
  margin: 0;
  color: rgba(255, 247, 233, .68);
  font-size: .98rem;
  line-height: 1.9;
}
.pha-footer-home {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  width: max-content;
  margin: 22px 0 0 !important;
  padding: 10px 15px;
  border: 1px solid rgba(201, 162, 75, .34);
  border-radius: 999px;
  color: #e6c878 !important;
  text-decoration: none !important;
  font-size: .86rem !important;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.pha-footer-home:hover {
  transform: translateY(-2px);
  background: rgba(201, 162, 75, .10);
  border-color: rgba(230, 200, 120, .68);
}
.pha-footer-nav,
.pha-footer-contact { min-width: 0; }
.pha-footer-link {
  display: block !important;
  width: fit-content;
  margin: 0 0 11px !important;
  color: rgba(255, 247, 233, .68) !important;
  text-decoration: none !important;
  font-size: .94rem !important;
  line-height: 1.55;
  transition: color .2s ease, transform .2s ease;
}
.pha-footer-link:hover {
  color: #e6c878 !important;
  transform: translateX(3px);
}
.pha-footer-link strong { color: #e6c878; font-weight: 700; }
.pha-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .10);
  color: rgba(255, 247, 233, .48);
  font-size: .78rem;
  line-height: 1.65;
}
.pha-footer-bottom a {
  color: rgba(230, 200, 120, .82) !important;
  text-decoration: none !important;
}
.pha-page-note {
  position: relative;
  z-index: 5;
  padding: 34px 24px;
  color: rgba(255, 247, 233, .72);
  background: #0b292b;
  text-align: center;
  border-top: 1px solid rgba(201, 162, 75, .16);
}
.pha-page-note-inner {
  width: min(920px, 100%);
  margin: 0 auto;
  font-size: .9rem;
  line-height: 1.8;
}
.pha-page-note strong {
  display: block;
  margin-bottom: 8px;
  color: #e6c878;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

@media (max-width: 860px) {
  .pha-site-footer { padding-top: 46px; }
  .pha-footer-grid { grid-template-columns: 1fr 1fr; }
  .pha-footer-about { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .pha-footer-wrap { width: min(100% - 32px, 1180px); }
  .pha-footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .pha-footer-about { grid-column: auto; }
  .pha-footer-title { margin-bottom: 13px; }
  .pha-footer-description { font-size: .9rem; line-height: 1.75; }
  .pha-footer-link { font-size: .9rem !important; }
  .pha-footer-bottom { display: block; margin-top: 30px; }
  .pha-footer-bottom span { display: block; margin-top: 6px; }
}

/* Chống CSS của từng trang áp nhầm lên thẻ <nav> nằm trong footer. */
.pha-site-footer .pha-footer-nav{
  position:static!important;
  inset:auto!important;
  top:auto!important;
  right:auto!important;
  bottom:auto!important;
  left:auto!important;
  z-index:auto!important;
  display:block!important;
  width:auto!important;
  max-width:none!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  transform:none!important;
}
