/* Common CSS - Shared across all pages */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #F2F2F2;
  color: #333;
  overflow-x: hidden;
}

/* Container Utility */
.container {
  max-width: 1566px;
  margin: 0 auto;
  padding: 0 120px;
}

/* Header */
.header {
  background-color: #FFFFFF;
  min-height: 100px;
  max-height: 100px;
  display: flex;
  align-items: center;
}

.header-container {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 35px 50px;
  margin: 0 auto;
}

.logo {
  height: 100px;
  display: flex;
  align-items: center;
  width: auto;
}

.logo a {
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
}

.logo img {
  width: 100%;
  height: 100%;
  max-width: 400px;
  max-height: 150px;
  object-fit: contain;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #333333;
  transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
  display: flex;
  gap: 50px;
  align-items: center;
  justify-content: center;
}

.nav-item {
  color: #333333;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 3.2px;
  position: relative;
  padding-top: 21px;
}

.nav-item::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 139px;
  height: 5px;
  background-color: #2FA84F;
  border-radius: 15px;
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-item:hover::after {
  opacity: 1;
}

.nav-item.active::after {
  opacity: 1;
}

/* Khi hover vào nav menu, ẩn thanh của nav active nếu không hover vào chính nó */
.nav-menu:hover .nav-item.active:not(:hover)::after {
  opacity: 0;
}

/* Khi hover vào nav active, vẫn hiển thị thanh */
.nav-item.active:hover::after {
  opacity: 1;
}

.nav-item.active {
  font-size: 16px;
}

.search-box {
  width: 325px;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  padding: 0 15px;
  background: rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s, background 0.3s;
}

.search-box:focus-within {
  border-color: #2FA84F
;
  background: rgba(255, 255, 255, 0.15);
}

.search-icon {
  width: 20px;
  height: 20px;
  color: #2FA84F;
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  height: 100%;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: white;
  font-size: 20px;
  outline: none;
}

.search-input::placeholder {
  color: white;
  opacity: 0.8;
}

/* Footer */
.footer {
  background-color: #2FA84F;
  padding: 0;
  position: relative;
  width: 100%;
}

.footer-top-bar {
  height: 8.9px;
  background-color: #2FA84F;
  width: 100%;
}

.footer-content-wrapper {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-social-icons {
  display: flex;
  gap: 27px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 57px;
  height: 57px;
  flex-shrink: 0;
  transition: opacity 0.3s ease;
}

.footer-social-icon:hover {
  opacity: 0.8;
}

.footer-social-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.footer-text {
  text-align: center;
  color: white;
  margin-bottom: 20px;
}

.footer-address {
  font-size: 18px;
  font-weight: 400;
  line-height: 36px;
  margin-bottom: 10px;
}

.footer-copyright {
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: #ffffff;
  letter-spacing: -0.198px;
}

.footer-copyright-bold {
  font-weight: 500;
  color: white;
}

.footer-logo {
  position: absolute;
  bottom: 49px;
  left: calc(50% - 600px);
  width: 50px;
  height: 12px;
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Responsive - Common */
@media (max-width: 1440px) {
  .container {
    padding: 0 40px;
  }
}

@media (max-width: 1137px) {
  .container {
    padding: 0 30px;
  }

  .header-container {
    padding: 25px 30px;
    gap: 20px;
  }

  .nav-menu {
    gap: 20px;
  }

  .nav-item {
    font-size: 18px;
    letter-spacing: 2px;
  }

  .nav-item::after {
    width: 130px;
    height: 4px;
    top: 4px;
  }

  .nav-item.active {
    font-size: 14px;
  }

  .search-box {
    display: none;
  }
}

@media (max-width: 1024px) {
  .container {
    padding: 0 25px;
  }

  .header-container {
    padding: 20px 25px;
    gap: 15px;
  }

  .nav-menu {
    gap: 15px;
  }

  .nav-item {
    font-size: 16px;
    letter-spacing: 1.5px;
  }

  .nav-item::after {
    width: 120px;
    height: 4px;
    top: 3px;
  }

  .nav-item.active {
    font-size: 13px;
  }

  .search-box {
    display: none;
  }

  .footer-content-wrapper {
    padding: 0 30px 0;
  }

  .footer-logo {
    left: 30px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  /* Header */
  .header {
    min-height: 60px;
    max-height: 60px;
  }

  .header-container {
    grid-template-columns: auto 1fr auto;
    padding: 15px 20px;
    gap: 15px;
    position: relative;
  }

  .logo {
    grid-column: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: auto;
  }

  .logo {
    height: 60px;
  }

  .logo img {
    width: auto;
    height: 45px;
    max-height: 60px;
    object-fit: contain;
  }

  .mobile-menu-toggle {
    display: flex;
    grid-column: 3;
    justify-self: flex-end;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #F2F2F2;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    grid-column: 1 / -1;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-item {
    font-size: 16px;
    letter-spacing: 1px;
    width: 100%;
    text-align: center;
    padding-top: 10px;
  }

  .nav-item::after {
    width: 100px;
    height: 3px;
    top: 2px;
  }

  .search-box {
    display: none;
  }

  .footer-content-wrapper {
    padding: 40px 25px 50px;
    min-height: 250px;
  }

  .footer-social-icons {
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
  }

  .footer-social-icon {
    width: 45px;
    height: 45px;
  }

  .footer-address {
    font-size: 12px;
    line-height: 20px;
    padding: 0 10px;
  }

  .footer-copyright {
    font-size: 12px;
    line-height: 20px;
    padding: 0 10px;
  }

  .footer-logo {
    left: 25px;
    bottom: 30px;
  }
}

@media (max-width: 480px) {
  .footer-content-wrapper {
    padding: 30px 20px 40px;
    min-height: 200px;
  }

  .footer-social-icons {
    gap: 12px;
    margin-bottom: 20px;
  }

  .footer-social-icon {
    width: 40px;
    height: 40px;
  }

  .footer-address {
    font-size: 11px;
    line-height: 18px;
    margin-bottom: 8px;
  }

  .footer-copyright {
    font-size: 11px;
    line-height: 18px;
  }

  .footer-logo {
    left: 20px;
    bottom: 20px;
    width: 40px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 10px 15px;
  }

  .logo {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: auto;
  }

  .logo img {
    width: auto;
    height: 40px;
    max-height: 60px;
    object-fit: contain;
  }

  .nav-menu {
    gap: 10px;
  }

  .nav-item {
    font-size: 12px;
    letter-spacing: 0.5px;
  }

  .nav-item::after {
    width: 80px;
    height: 3px;
    top: 2px;
  }

  .footer-content {
    padding: 30px 0;
  }

  .footer-info p {
    font-size: 13px;
  }

  .footer-center h3 {
    font-size: 16px;
  }

  .footer-center ul li {
    font-size: 14px;
  }
}

/* HR Team Section - Shared across pages */
.hr-team-section {
  padding-bottom: 80px;
  background-color: #f2f2f2;
  width: 100%;
}

.hr-team-section .container {
  max-width: 100%;
  padding: 0 120px;
}

.hr-team-title {
  font-size: 50px;
  font-weight: 900;
  color: #333333;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 60px;
  line-height: 1.2;
}

.hr-team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  width: 100%;
  margin: 0 auto;
}

.hr-team-card {
  position: relative;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.hr-team-card-wrapper {
  position: relative;
  width: 100%;
  min-height: 189px;
  background: #FFFFFF;
  border-radius: 20px;
  display: flex;
  align-items: center;
  padding: 20px;
  gap: 20px;
}

.hr-team-card-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.hr-team-card-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: #2FA84F;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hr-team-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hr-team-card-name {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  text-align: center;
  margin: 0;
}

.hr-team-card-divider {
  width: 1px;
  height: 100%;
  min-height: 120px;
  background: #3E8E41;
  flex-shrink: 0;
}

.hr-team-card-right {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1;
  align-items: flex-start;
}

.hr-team-card-right .hr-team-card-contact-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
  width: fit-content;
  max-width: 100%;
}

.hr-team-card-contact-item {
  text-decoration: none;
  color: #333;
  transition: opacity 0.3s ease;
}

.hr-team-card-contact-item:hover {
  opacity: 0.7;
}

.hr-team-card-contact-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  max-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  grid-column: 1;
}

.hr-team-card-contact-icon img {
  width: 32px;
  height: 32px;
  max-width: 32px;
  max-height: 32px;
  display: block;
  object-fit: contain;
  margin: 0;
  padding: 0;
}

.hr-team-card-contact-text {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  word-break: break-word;
  overflow-wrap: break-word;
  margin: 0;
  padding: 0;
  line-height: 1.5;
  grid-column: 2;
}

/* Responsive HR Team Section */

@media (max-width: 1200px) {
  .hr-team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .hr-team-card-wrapper {
    padding: 18px;
    gap: 18px;
  }

  .hr-team-card-avatar {
    width: 110px;
    height: 110px;
  }

  .hr-team-card-name {
    font-size: 22px;
  }

  .hr-team-card-contact-text {
    font-size: 15px;
  }
}

@media (max-width: 1024px) {
  .hr-team-section {
    padding-top: 0;
    padding-bottom: 60px;
  }

  .hr-team-section .container {
    padding: 0 40px;
  }

  .hr-team-title {
    font-size: 40px;
    margin-bottom: 40px;
  }

  .hr-team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .hr-team-card-wrapper {
    padding: 15px;
    gap: 15px;
  }

  .hr-team-card-avatar {
    width: 100px;
    height: 100px;
  }

  .hr-team-card-name {
    font-size: 20px;
  }

  .hr-team-card-contact-icon {
    width: 32px;
    height: 32px;
  }

  .hr-team-card-contact-icon img {
    width: 32px;
    height: 32px;
  }

  .hr-team-card-contact-text {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .hr-team-section {
    padding-top: 0;
    padding-bottom: 60px;
  }

  .hr-team-section .container {
    padding: 0 25px;
  }

  .hr-team-title {
    font-size: 36px;
    margin-bottom: 40px;
  }

  .hr-team-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hr-team-card-wrapper {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    min-height: auto;
  }

  .hr-team-card-left {
    width: 100%;
  }

  .hr-team-card-avatar {
    width: 100px;
    height: 100px;
  }

  .hr-team-card-name {
    font-size: 20px;
  }

  .hr-team-card-divider {
    width: 100%;
    height: 1px;
    min-height: 1px;
  }

  .hr-team-card-right {
    width: 100%;
    align-items: flex-start;
  }

  .hr-team-card-right .hr-team-card-contact-item {
    grid-template-columns: 32px 1fr;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
  }

  .hr-team-card-contact-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    max-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    grid-column: 1;
  }

  .hr-team-card-contact-icon img {
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
    display: block;
    object-fit: contain;
    margin: 0;
    padding: 0;
  }

  .hr-team-card-contact-text {
    font-size: 14px;
    text-align: left;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    grid-column: 2;
  }
}

@media (max-width: 480px) {
  .hr-team-section .container {
    padding: 0 15px;
  }

  .hr-team-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .hr-team-grid {
    gap: 20px;
  }

  .hr-team-card-wrapper {
    padding: 15px;
    gap: 15px;
  }

  .hr-team-card-avatar {
    width: 80px;
    height: 80px;
  }

  .hr-team-card-name {
    font-size: 18px;
  }

  .hr-team-card-right {
    align-items: flex-start;
  }

  .hr-team-card-right .hr-team-card-contact-item {
    grid-template-columns: 32px 1fr;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
  }

  .hr-team-card-contact-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    max-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    grid-column: 1;
  }

  .hr-team-card-contact-icon img {
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
    display: block;
    object-fit: contain;
    margin: 0;
    padding: 0;
  }

  .hr-team-card-contact-text {
    font-size: 13px;
    text-align: left;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    grid-column: 2;
  }
}
