/* ================================
   Footer Responsive Layout (AEHOBAK)
   ================================ */

.wp-site-blocks { padding-bottom: 0 !important; }
footer.wp-block-template-part { margin-bottom: 0 !important; }
footer .wp-block-group:last-child,
footer .wp-block-paragraph:last-child,
footer .wp-block-separator:last-child { margin-bottom: 0 !important; }

/* 레이아웃 기본(PC) */
.footer-flex{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-direction:row;
  gap:1rem;
  padding-top:40px;
  padding-bottom:40px;
}
.footer-flex > .wp-block-group{ flex:1 1 0; min-width:0; }

/* 링크 묶음 = 좌측(PC) */
.footer-link-flex{
  display:flex;
  flex-direction:row;
  align-items:baseline;
  gap:.5rem;
  justify-content:flex-start;   /* ← NBSP 없이! */
  text-align:left;
}

/* 카피라이트 묶음 = 우측(PC) */
.copy-flex{
  display:flex;
  flex-direction:row;
  align-items:baseline;
  gap:.5rem;
  justify-content:flex-end;     /* 우측 정렬 */
  text-align:right;
}
.copy-flex p{ margin:0; font-weight:100; font-size:small; }

/* 보조 텍스트 */
.footer-sub{ font-weight:100; color:#949494; }

/* 구분선 */
hr.footer-line{
  border:none;
  border-top:1px solid #949494;
}

/* ================================
   Mobile (max-width: 768px)
   ================================ */
@media (max-width:768px){
  .footer-flex{
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:.75rem;
  }
  .footer-flex > *{
    width:100% !important;
    max-width:100% !important;
    flex:0 0 100%;
  }

  /* 모바일에선 둘 다 가운데 */
  .footer-link-flex,
  .copy-flex{
    justify-content:center !important;
    align-items:center !important;
    text-align:center !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }

  /* WP가 강제로 넣는 정렬 클래스 무력화 */
  .footer-link-flex .has-text-align-left,
  .footer-link-flex .has-text-align-right,
  .copy-flex .has-text-align-left,
  .copy-flex .has-text-align-right{
    text-align:inherit !important; /* = center */
  }

  .footer-sub{ text-align:center !important; }
}

