@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@500;600;700&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

:root {
  --primary: #1A9900;
  --primary-hover: #147700;
  --primary-accent: #5eb74c;
  --secondary: #181924;
  --dark: #181924;
  --text-main: #5b5d62;
  --heading: #181923;
  --bg-beige: rgb(247, 243, 238);
  --bg-light: #f5f8fb;
  --border-light: #e5e7eb;
}

* {
  border-radius: 0px !important; /* Square sharp style matching original template */
}

/* Specific allowed circle exceptions (only avatars and round icon buttons) */
.circle-avatar,
.rounded-circle,
.avatar-img {
  border-radius: 50% !important;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-main);
  background-color: #ffffff;
  overflow-x: hidden;
  line-height: 1.7;
  font-size: 15px; /* Comfortable, readable base font size */
}

/* Balanced, clean headings (not overly heavy/chunky) */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--heading);
  font-weight: 700;
  line-height: 1.35;
}

.font-handwriting {
  font-family: 'Dancing Script', cursive;
  font-weight: 600;
  color: var(--primary-accent);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: #181924;
}
::-webkit-scrollbar-thumb {
  background: #1A9900;
}
::-webkit-scrollbar-thumb:hover {
  background: #147700;
}

/* Buttons */
.btn-primary,
.button-primary {
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 11px 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  border: 1px solid var(--primary);
  cursor: pointer;
}

.btn-primary:hover,
.button-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  color: #ffffff;
  font-weight: 600;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 11px 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background-color: #ffffff;
  color: #181924;
  border-color: #ffffff;
}

/* Header transition */
.site-header {
  transition: all 0.3s ease-in-out;
}

.site-header.is-sticky {
  background-color: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* Nav Link Hover Effects */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
  font-size: 14.5px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
}

/* Dropdown Menu */
.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s ease;
}

/* Marquee */
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

/* Animations */
@keyframes pulsePhone {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(31, 124, 69, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(31, 124, 69, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(31, 124, 69, 0); }
}

@keyframes pulseZalo {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 104, 255, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(0, 104, 255, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 104, 255, 0); }
}

.animate-pulse-phone {
  animation: pulsePhone 2s infinite;
}

.animate-pulse-zalo {
  animation: pulseZalo 2s infinite;
}

/* Card hover */
.flat-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flat-card:hover {
  transform: translateY(-4px);
}

/* Input Fields */
input, select, textarea {
  border: 1px solid #d1d5db;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary) !important;
  outline: none;
}
