/*
Theme Name: Kato
Description: Custom WordPress theme for NCP website
Version: 1.0.0
Author: NCP Team
Text Domain: kato
*/

/* Reset HTML margin */
body {
  font-family:
    "Be Vietnam Pro",
    "BaoMoi",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
}
html {
  margin: 0 !important;
}

/* Subscribe Form */
.subscribe-form {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
  border-bottom: 1px solid #ccc;
}

.subscribe-input {
  width: 100%;
  padding: 12px 20px 12px 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  color: #000;
}

.subscribe-button {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: #223035;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.subscribe-button:hover {
  background: #000;
}

.subscribe-button i {
  margin-left: 8px;
}

/* Contact Form 7 */
.cf7-input,
.cf7-textarea {
  width: 100%;
  padding: 0.5rem 0;
  border-bottom: 1px solid #ccc;
  outline: none;
}

.cf7-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #1f2937;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  transition: background 0.25s ease;
}

.cf7-button:hover {
  background: #111827;
}

.cf7-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .cf7-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Header Menu Hover Effects */
.header-menu li {
  position: relative;
}

.header-menu li ul {
  position: absolute;
  left: 0;
  top: 100%;
  display: none;
  background: #fff;
  min-width: 220px;
  padding: 8px 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 50;
}

.header-menu li:hover > ul {
  display: block;
}

.header-menu li ul li a {
  display: block;
  padding: 8px 16px;
  color: #1f2937;
  text-decoration: none;
}

.header-menu li ul li a:hover {
  background: #f3f4f6;
  color: #47d7ac;
}

/* Pagination */
.page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 40px 0;
  padding: 0;
  list-style: none;
  font-family: sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.page-numbers a,
.page-numbers span {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #ddd;
  color: #444;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.25s ease;
}

.page-numbers a:hover {
  background: #47d7ac;
  color: #fff;
  border-color: #47d7ac;
}

.page-numbers .current {
  background: #47d7ac;
  color: #fff;
  border-color: #47d7ac;
  font-weight: 600;
}

.page-numbers .prev,
.page-numbers .next {
  font-weight: 600;
}

@media (max-width: 480px) {
  .page-numbers a,
  .page-numbers span {
    padding: 6px 10px;
    font-size: 13px;
  }
}

/* Footer */
footer .widget-title {
  font-size: 25px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 16px;
  color: #85979b;
}

footer .widget_nav_menu li {
  margin-bottom: 10px;
  transition: all 0.25s ease-in;
}

footer .widget_nav_menu li:hover {
  color: #85979b;
  transform: translateX(5px);
}

/* Misc Elements */
.main-item::before {
  content: "";
  position: absolute;
  left: 10px;
  bottom: -15px;
  width: 60px;
  height: 20px;
}

.language-switcher::after {
  content: "";
  position: absolute;
  bottom: -10px;
  width: 100%;
  height: 15px;
  background: transparent;
}
