/* =========================================================
   PAKN Phú Hòa Đông - Bootstrap 5 layout, style tham khảo
   theme WordPress mat-tran-to-quoc.
   ========================================================= */
:root {
  --red-600: #c00000;
  --red-700: #a00000;
  --orange-500: #ff9900;
  --gray-900: #0a0a0a;
  --gray-800: #333;
  --gray-700: #555;
  --gray-600: #666;
  --gray-500: #888;
  --gray-200: #eee;
  --gray-100: #f8f8f8;
  --body-bg: #fff;
  --pakn-card-radius: 10px;
}

html,
body {
  overflow-x: hidden;
  min-height: 100%;
  background: url(../images/bg-v2.png) repeat center top;
  background-size: 11%;
}

body {
  font-family: "Roboto", Arial, sans-serif;
  font-size: 15px;
  color: var(--gray-800);
  position: relative;
}

a {
  color: var(--gray-800);
  text-decoration: none;
}

a:hover {
  color: var(--red-600);
}

.container {
  background: #fff;
}

/* Bootstrap color tune */
.text-danger { color: var(--red-600) !important; }
.bg-danger,
.btn-danger,
.progress-bar.bg-danger,
.text-bg-danger {
  background-color: var(--red-600) !important;
  border-color: var(--red-600) !important;
}
.btn-danger:hover { background-color: var(--red-700) !important; border-color: var(--red-700) !important; }
.btn-outline-danger { color: var(--red-600); border-color: var(--red-600); }
.btn-outline-danger:hover { background-color: var(--red-600); border-color: var(--red-600); color: #fff; }
.btn { font-weight: 700; }

/* =========================
   Header giống WordPress
   ========================= */
.top-bar {
  background-color: var(--gray-100);
  font-size: 12px;
  color: var(--gray-600);
  padding: 5px 0;
  border-bottom: 1px solid var(--gray-200);
}
.top-bar .container { background: transparent; }
.top-bar .top-link { color: var(--gray-600); font-weight: 600; }
.top-bar .top-link:hover { color: var(--red-600); }

.pakn-wp-header {
  box-shadow: 0 4px 18px rgba(0,0,0,.05);
}
.pakn-wp-header .row,
.pakn-wp-menu-wrap {
  background: #fff;
}
.pakn-banner {
  display: block;
  object-fit: cover;
  /* max-height: 132px; */
  object-position: center;
}

.main-nav {
  background-color: var(--red-600);
  min-height: 40px;
  display: block;
  padding: 0;
}
.main-nav .navbar-toggler {
  min-height: 40px;
  box-shadow: none;
}
.main-nav .navbar-toggler-icon {
  filter: invert(1) grayscale(1) brightness(2);
}
.main-nav .navbar-nav .nav-link {
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 12px;
  line-height: 20px;
  border-right: 1px solid rgba(0, 0, 0, .15);
  border-radius: 0;
}
.main-nav .navbar-nav .nav-item:last-child .nav-link {
  border-right: none;
}
.main-nav .navbar-nav .nav-link:hover,
.main-nav .navbar-nav .nav-link.active {
  color: #fff;
  background-color: var(--red-700);
}
.btn-search-login {
  background: #fff;
  color: var(--red-600);
  border-radius: 0;
  border: 0;
  height: 32px;
  min-width: 116px;
  padding: 5px 14px;
  font-size: 13px;
  text-transform: uppercase;
}
.btn-search-login:hover {
  background: #fff3f3;
  color: var(--red-700);
}

/* =========================
   Main shell + heading
   ========================= */
main {
  min-height: 55vh;
}
main > .container,
.pakn-page-container {
  background: #fff;
  box-shadow: 0 10px 28px rgba(85, 0, 0, .04);
}
.breadcrumb {
  --bs-breadcrumb-divider-color: #aaa;
  color: var(--gray-600);
  font-size: 13px;
}
.breadcrumb a { color: var(--gray-600); }
.breadcrumb a:hover { color: var(--red-600); }

.section-title-custom,
.pakn-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 3px solid var(--orange-500);
  padding-bottom: 5px;
  position: relative;
}
.section-title-custom::before,
.pakn-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 60px;
  height: 3px;
  background-color: var(--red-600);
  z-index: 1;
}
.pakn-section-title h2,
.section-title-custom h2 {
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gray-800);
  margin: 0;
  padding-left: 10px;
}

.card {
  border-radius: var(--pakn-card-radius);
  border-color: #e5e7eb !important;
}
.card-header {
  border-top-left-radius: var(--pakn-card-radius) !important;
  border-top-right-radius: var(--pakn-card-radius) !important;
}
.shadow-sm {
  box-shadow: 0 .35rem 1rem rgba(0,0,0,.06) !important;
}

/* =========================
   Dashboard cards
   ========================= */
.pakn-stat-card {
  border-top: 3px solid var(--red-600) !important;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pakn-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 1rem 2rem rgba(20,24,40,.10) !important;
}
.pakn-stat-card .display-6 {
  font-size: 34px;
  line-height: 1;
}

.pakn-orbit {
  position: relative;
  min-height: 420px;
  border-radius: 8px;
  background:
    radial-gradient(circle at center, #fff 0 24%, #fff1f3 25% 54%, #fff 55% 100%);
  overflow: hidden;
}
.pakn-orbit::before,
.pakn-orbit::after {
  content: "";
  position: absolute;
  inset: 13% 18%;
  border: 2px dashed #e5e7eb;
  border-radius: 50%;
}
.pakn-orbit::after {
  inset: 27% 31%;
}
.pakn-orbit-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 164px;
  height: 164px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 8px solid #ffe2e6;
  z-index: 2;
}
.pakn-orbit-center span { color: var(--gray-600); font-size: 13px; }
.pakn-orbit-center strong { color: var(--red-600); font-size: 34px; }
.pakn-node {
  position: absolute;
  width: 130px;
  min-height: 82px;
  padding: 12px;
  border-radius: 12px;
  background: var(--red-600);
  color: #fff;
  box-shadow: 0 14px 28px rgba(192,0,0,.16);
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 3;
}
.pakn-node span { font-size: 12px; opacity: .92; }
.pakn-node b { font-size: 24px; line-height: 1.1; }
.pakn-node.n1 { left: 7%; top: 14%; }
.pakn-node.n2 { right: 8%; top: 14%; background:#e65b00; }
.pakn-node.n3 { left: 9%; bottom: 15%; background:#1677ff; }
.pakn-node.n4 { right: 9%; bottom: 14%; background:#1f9d55; }
.pakn-node.n5 { left: 50%; top: 6%; transform: translateX(-50%); background:#7c3aed; }

#mostViewed .list-group-item,
#latestPublic .card,
.pakn-item-card {
  border-color: #edf0f2 !important;
}
.pakn-item-card { transition: transform .18s ease, box-shadow .18s ease; }
.pakn-item-card:hover { transform: translateY(-2px); box-shadow: 0 1rem 2rem rgba(20,24,40,.08) !important; }

.pakn-red-summary {
  border-radius: 10px;
  background: linear-gradient(135deg, var(--red-600), var(--red-700)) !important;
}

/* =========================
   Forms / detail / performance
   ========================= */
.form-control,
.form-select {
  border-radius: 6px;
  border-color: #d9dee3;
  font-size: 15px;
}
.form-control:focus,
.form-select:focus {
  border-color: #e17979;
  box-shadow: 0 0 0 .2rem rgba(192,0,0,.12);
}
.pakn-steps .pakn-step {
  padding: 10px 12px;
  border-radius: 999px;
  background: #f8f9fa;
  color: #6c757d;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid #edf0f2;
}
.pakn-steps .pakn-step.active {
  background: #fff1f2;
  color: var(--red-600);
  border-color: #ffd4d8;
}
.pakn-steps .pakn-step.active .badge { background: var(--red-600) !important; }
.pakn-form-page { display: none; }
.pakn-form-page.active { display: block; }
.pakn-hp-field { position: absolute; left: -99999px; width: 1px; height: 1px; overflow: hidden; }
.pakn-mini-icon,
.pakn-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  background: var(--red-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.pakn-icon-circle { width: 54px; height: 54px; font-size: 24px; }
.pakn-detail-content {
  line-height: 1.75;
  overflow-wrap: anywhere;
  text-align: justify;
}
.pakn-detail-content img { max-width: 100%; height: auto; border-radius: .5rem; }
.pakn-donut {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: conic-gradient(#19b957 0 45%, #2d9cff 45% 75%, #ff8a34 75% 90%, #dc3545 90% 100%);
  position: relative;
}
.pakn-donut::after {
  content: "Hiệu suất";
  position: absolute;
  inset: 52px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--red-600);
}

/* =========================
   Footer giống WordPress
   ========================= */
.footer {
  color: var(--gray-800);
  padding: 25px 0 10px;
  font-size: 13px;
  border-top: 3px solid var(--red-600);
  margin-top: 20px;
  background: url(../images/bg-footer-hcm.png) no-repeat center top #FFFAFA;
  background-size: cover;
}
.footer .container { background: transparent; }
.footer h5 {
  color: var(--red-600);
  font-size: 15px;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 15px;
}
.footer p,
.footer ul li {
  margin-bottom: 8px;
  line-height: 1.5;
}
.footer ul { list-style: none; padding-left: 0; }
.footer ul li a,
.footer a { color: var(--gray-800); }
.footer ul li a:hover,
.footer a:hover { color: var(--red-600); }
.footer .nav-link { padding: 0; }
.footer .footer-bottom {
  border-top: 1px solid #ddd;
  padding-top: 15px;
  margin-top: 15px;
  font-size: 12px;
  text-align: center;
  color: #555;
}
.footer .footer-map iframe {
  width: 100%;
  height: 160px;
  border: 1px solid #ccc !important;
  border-radius: 0;
}

/* Mobile bottom nav giống theme */
.bottom-nav { display: none; }
.right-fix-icon {
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 1020;
}
.right-fix-icon .icon-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

/* =========================
   Responsive
   ========================= */
@media (min-width: 1400px) {
  .container { max-width: 1320px; }
}

@media (max-width: 991.98px) {
  .main-nav .navbar-nav .nav-link {
    border-right: none;
    border-top: 1px solid rgba(255,255,255,.14);
  }
  .pakn-login-wrap { padding: 10px 12px; }
  .btn-search-login { width: 100%; }
}

@media (max-width: 767.98px) {
  html,
  body { background-size: 28%; }
  body { padding-bottom: 74px; }
  .pakn-banner { max-height: none; }
  .main-nav { display: none; }
  main { padding-top: 12px !important; }
  main > .container { padding-left: 14px; padding-right: 14px; }
  .pakn-stat-card .display-6 { font-size: 30px; }
  .pakn-orbit { min-height: 430px; }
  .pakn-node { width: 112px; min-height: 76px; padding: 10px; }
  .pakn-node b { font-size: 21px; }
  .pakn-node.n1 { left: 2%; top: 15%; }
  .pakn-node.n2 { right: 2%; top: 16%; }
  .pakn-node.n3 { left: 3%; bottom: 17%; }
  .pakn-node.n4 { right: 3%; bottom: 17%; }
  .pakn-node.n5 { top: 4%; }
  .footer { padding-bottom: 24px; }
  .right-fix-icon { display: none; }
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1050;
    box-shadow: 0 -4px 14px rgba(0,0,0,.08);
  }
  .bottom-nav a {
    flex: 1;
    color: #555;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
  }
  .bottom-nav a i {
    display: block;
    font-size: 20px;
    margin-bottom: 3px;
  }
  .bottom-nav a.active,
  .bottom-nav a.active i { color: var(--red-600); }
  .bottom-nav a.logo-center {
    flex: 0 0 68px;
    margin-top: -28px;
  }
  .bottom-nav a.logo-center img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #fff;
    padding: 4px;
    border: 3px solid #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,.16);
    object-fit: contain;
  }
}
