/* ===== RESET ===== */
body {
  margin: 0;
  font-family: "Khmer OS Battambang", Arial, sans-serif;
  background: #f7f7f7;
}

/* ===== HEADER ===== */
.kl-header {
  background: linear-gradient(135deg, #117bf4, #e53935);
  padding: 14px 0; /* ធំឡើងបន្តិច */
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.kl-header-inner {
  width: 92%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===== LEFT ===== */
.kl-left {
  display: flex;
  align-items: center;
  gap: 20px; /* spacing ស្អាត */
}

/* ===== HOME ICON ===== */
.kl-home svg {
  width: 30px;     /* ធំឡើង */
  height: 30px;
  transition: transform 0.2s ease;
}

.kl-home:hover svg {
  transform: scale(1.1);
}

/* ===== LOGO ===== */
.kl-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* SVG SIZE + SUBTLE ANIMATION */
.kl-logo-svg {
  height: 68px;   /* LOGO ធំ */
  width: auto;
  display: block;
  user-select: none;

  /* subtle float */
  animation: logoFloatSoft 6s ease-in-out infinite;
}

/* FLOAT SOFT */
@keyframes logoFloatSoft {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

/* TEXT SUBTLE GLOW */
.kl-logo-svg text {
  transform-origin: center;
  animation: textGlowSoft 5s ease-in-out infinite;
}

/* GLOW SOFT */
@keyframes textGlowSoft {
  0% {
    filter: drop-shadow(0 0 0 rgba(255,210,0,0.25));
    opacity: 1;
  }
  50% {
    filter: drop-shadow(0 0 4px rgba(255,210,0,0.4));
    opacity: 0.98;
  }
  100% {
    filter: drop-shadow(0 0 0 rgba(255,210,0,0.25));
    opacity: 1;
  }
}

/* ===== MENU ===== */
.kl-menu {
  display: flex;
  align-items: center;
}

.kl-menu a {
  position: relative;
  color: #fff;
  text-decoration: none;
  margin-left: 28px;
  font-size: 17px; /* logo dominant */
  padding: 6px 2px;
  transition: color 0.3s ease;
}

.kl-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #ffd200;
  transition: width 0.3s ease;
}

.kl-menu a:hover {
  color: #ffd200;
}

.kl-menu a:hover::after {
  width: 100%;
}

/* ===== ANTI COPY ===== */
.no-copy,
.no-copy * {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.no-copy svg {
  pointer-events: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

  .kl-logo-svg {
    height: 52px;   /* Mobile */
  }

  .kl-home svg {
    width: 24px;
    height: 24px;
  }

  .kl-menu {
    display: none;
  }
}
/* ===== FOOTER ===== */
.kl-footer {
  background: linear-gradient(135deg, #117bf4, #e53935);
  padding: 14px 0;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
  color: #fff;
}

/* FOOTER INNER */
.kl-footer-inner {
  width: 92%;
  margin: auto;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.3px;
  opacity: 0.95;
}

html, body {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main,
.container {
  flex: 1;
}
