/* ============================================================
   TPROD HEADER — matches Translogi site header style
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap');

.tprod-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}

.tprod-header__inner {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  min-height: 80px;
  box-sizing: border-box;
}

/* Logo — chiếm 1/3 bên trái */
.tprod-header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 33.333%;
}
.tprod-header__logo img {
  width: 145px;
  height: auto;
  display: block;
}
.tprod-header__site-name {
  font-size: 2rem;
  font-weight: 800;
  color: #0057a8;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* Desktop nav — chiếm 2/3 bên phải */
.tprod-nav {
  display: flex;
  align-items: center;
  flex: 1;
}

/* Reset any wp_nav_menu default styles */
.tprod-nav__list,
.tprod-nav__list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tprod-nav__list {
  display: flex;
  align-items: center;
}

.tprod-nav__list > li {
  position: relative;
  margin: 0;
  padding: 0;
}

/* Top-level links */
.tprod-nav__list > li > a {
  display: block;
  padding: 20px 30px;
  line-height: 1.4;
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #1a1a2e;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s;
  position: relative;
  text-transform: capitalize;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
}

.tprod-nav__list > li > a:hover,
.tprod-nav__list > li.current-menu-item > a,
.tprod-nav__list > li.current-menu-ancestor > a {
  color: #0057a8;
  border-bottom-color: #0057a8;
}

/* Dropdown arrow SAU text */
.tprod-nav__list > li.menu-item-has-children > a::after {
  content: ' ▾';
  font-size: 1em;
  vertical-align: middle;
}

/* Dropdown sub-menu */
.tprod-nav__list .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  z-index: 10000;
}
.tprod-nav__list > li:hover > .sub-menu {
  display: block;
}
.tprod-nav__list .sub-menu li {
  margin: 0;
  padding: 0;
}
.tprod-nav__list .sub-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  color: #374151;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.tprod-nav__list .sub-menu a:hover {
  background: #f5f7fb;
  color: #0057a8;
}

/* Hamburger button */
.tprod-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.tprod-header__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #374151;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.tprod-header__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tprod-header__toggle.is-open span:nth-child(2) { opacity: 0; }
.tprod-header__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.tprod-mobile-menu {
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}
.tprod-mobile-menu__list,
.tprod-mobile-menu__list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tprod-mobile-menu__list {
  padding: 0.5rem 0 1rem;
}
.tprod-mobile-menu__list li { margin: 0; }
.tprod-mobile-menu__list > li > a {
  display: block;
  padding: 0.625rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #1a1a2e;
  text-decoration: none;
}
.tprod-mobile-menu__list > li > a:hover { color: #0057a8; }
.tprod-mobile-menu__list .sub-menu a {
  padding-left: 2.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}
.tprod-mobile-menu__list .sub-menu a:hover { color: #0057a8; }

@media (max-width: 900px) {
  .tprod-nav { display: none; }
  .tprod-header__toggle { display: flex; }
}

/* ============================================================
   TPROD FOOTER — 3-column layout matching Translogi main site
   ============================================================ */
.tprod-footer {
  background: #003C69;
  color: #b0c4d8;
  font-family: 'Poppins', sans-serif;
}

.tprod-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4.5rem 2rem 3.5rem;
  box-sizing: border-box;
}

/* Logo hàng trên */
.tprod-footer__logo-row {
  margin-bottom: 2.5rem;
}
.tprod-footer__logo {
  display: inline-block;
  text-decoration: none;
}
.tprod-footer__logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .9;
  display: block;
}
.tprod-footer__logo span {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

/* 3 cột bên dưới */
.tprod-footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 2.5rem;
  align-items: flex-start;
}

/* Columns */
.tprod-footer__col-title {
  font-family: 'Poppins', sans-serif;
  font-size: 30px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 1rem 0;
  padding: 0;
  text-transform: none;
  letter-spacing: 0;
}

.tprod-footer__col-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tprod-footer__col-list li {
  margin-bottom: 0.5rem;
}
.tprod-footer__col-list a {
  color: #b0c4d8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color .15s;
  line-height: 1.6;
}
.tprod-footer__col-list a:hover {
  color: #ffffff;
}

/* Subscribe form */
.tprod-footer__subscribe {
  margin-bottom: 1.25rem;
}
.tprod-footer__subscribe-row {
  display: flex;
  gap: 0;
}
.tprod-footer__subscribe-row input[type="email"] {
  flex: 1;
  padding: 0.6rem 0.875rem;
  font-size: 0.875rem;
  border: none;
  outline: none;
  background: #ffffff;
  color: #1a1a2e;
  min-width: 0;
}
.tprod-footer__subscribe-row button {
  padding: 0.6rem 1rem;
  background: #e8520a;
  color: #ffffff;
  border: none;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.tprod-footer__subscribe-row button:hover {
  background: #c7420a;
}

/* Contact info */
.tprod-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.tprod-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.875rem;
  color: #b0c4d8;
  line-height: 1.5;
}
.tprod-footer__contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: .8;
}
.tprod-footer__contact-item a {
  color: #b0c4d8;
  text-decoration: none;
}
.tprod-footer__contact-item a:hover {
  color: #ffffff;
}
.tprod-footer__contact-item i {
  font-size: 0.875rem;
  flex-shrink: 0;
  margin-top: 2px;
  opacity: .8;
}

@media (max-width: 768px) {
  .tprod-footer__cols {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .tprod-footer__cols {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Admin bar offset
   ============================================================ */
.admin-bar .tprod-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .tprod-header { top: 46px; }
}
