/* ============================================================
   🌟 KIM TÀI LỘC — GOLD LAYOUT (Balanced Edition)
   ============================================================ */
:root {
  --gold: #f4d27a;
  --gold-light: #ffe9a5;
  --gold-deep: #d1aa3d;
  --bg: #0a0a0a;
  --bg-soft: #121212;
  --text: #f8f8f8;
  --muted: #c7c7c7;
  --line: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  font-family: "Roboto", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}

/* ===== HEADER ===== */
.ktl-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.ktl-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  max-width: 1180px;
  margin: 0 auto;
}

.ktl-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.ktl-glow-logo {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  background: linear-gradient(90deg, var(--gold), #fff);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 6px rgba(255, 215, 102, .25);
}

/* ===== MENU ===== */
.ktl-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  transition: all .3s ease;
}

.ktl-menu a {
  color: var(--gold);
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: all .25s ease;
}

.ktl-menu a:hover {
  color: #fff;
}

.ktl-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width .3s ease;
}

.ktl-menu a:hover::after {
  width: 100%;
}

/* ===== BURGER ===== */
.ktl-burger {
  all: unset;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 5px;
}

.ktl-burger span {
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transition: all .3s ease;
}

.ktl-burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.ktl-burger.active span:nth-child(2) {
  opacity: 0;
}

.ktl-burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media(max-width: 768px) {
  .ktl-burger {
    display: flex;
  }

  .ktl-menu {
    position: fixed;
    top: 62px;
    left: 20px;
    right: 20px;
    flex-direction: column;
    background: #000;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 0;
    display: none;
  }

  .ktl-menu.active {
    display: flex;
  }

  .ktl-menu a {
    padding: 10px 0;
    width: 100%;
    text-align: center;
    font-size: 1.05rem;
  }
}

/* ===== LAYOUT ===== */
.ktl-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.ktl-section {
  padding: 64px 0;
}

.ktl-section--dark {
  background: linear-gradient(180deg, transparent, rgba(255, 215, 102, 0.05), transparent);
}

.ktl-article {
  padding: 20px 0;
}

/* ===== HERO ===== */
.ktl-hero-mini {
  background: radial-gradient(900px 500px at 10% -10%, rgba(255, 215, 102, 0.07), transparent);
  padding: 80px 0 48px;
}

.ktl-grid-2 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

@media(max-width: 900px) {
  .ktl-grid-2 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.ktl-title-lg {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(30px, 4vw, 42px);
  margin-bottom: .6rem;
  font-weight: 700;
}

.ktl-title-md {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(22px, 3.3vw, 28px);
  margin: 1.4rem 0 .7rem;
  font-weight: 600;
}

.ktl-meta {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: .95rem;
}

.ktl-badge {
  display: inline-block;
  background: rgba(255, 215, 102, .1);
  border: 1px solid rgba(255, 215, 102, .4);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .85rem;
  color: var(--gold);
}

/* ===== LINKS / BUTTON ===== */
.ktl-link {
  color: var(--gold);
  text-decoration: underline transparent;
  transition: all .25s ease;
}

.ktl-link:hover {
  text-decoration: underline;
  color: var(--gold-light);
}

.ktl-btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
  transition: all .3s ease;
  text-decoration: none;
}

.ktl-btn--primary {
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  color: #000;
}

.ktl-btn--primary:hover {
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  transform: translateY(-1px);
  box-shadow: 0 0 10px var(--gold-light);
}

.ktl-btn--ghost {
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
}

.ktl-btn--ghost:hover {
  background: var(--gold);
  color: #000;
}

/* ===== TABLE / CARD / GRID ===== */
.ktl-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
}

.ktl-table th,
.ktl-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.ktl-table th {
  background: rgba(255, 215, 102, 0.06);
  text-align: left;
}

.ktl-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.ktl-footer-links {
  margin-top: 1.8rem;
  text-align: center;
}

.ktl-footer-links__title {
  font-size: 1.1rem;
  color: #ffd84d;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
}

.ktl-footer-links__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}

.ktl-footer-links__list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  color: #fff8d2;
  text-decoration: none;
  transition: all 0.3s ease;
}

.ktl-footer-links__list a:hover {
  color: #ffd84d;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.ktl-footer-links__list i {
  color: #ffd84d;
  font-size: 1rem;
}

@media (max-width: 600px) {
  .ktl-footer-links__list {
    flex-direction: column;
    gap: 0.6rem;
  }
}

@media(max-width:900px) {
  .ktl-grid-3 {
    grid-template-columns: 1fr;
  }
}

.ktl-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  transition: all .3s;
  height: 100%;
}

.ktl-card:hover {
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(255, 215, 102, .12);
}

.ktl-card__title a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.ktl-card__title a:hover {
  color: var(--gold-light);
}

/* ===== GALLERY ===== */
.ktl-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.ktl-gallery img {
  height: 220px;
  object-fit: cover;
  border: 1px solid var(--line);
}

@media(max-width:768px) {
  .ktl-gallery {
    grid-template-columns: 1fr;
  }
}

/* ===== FOOTER ===== */
.ktl-footer {
  text-align: center;
  padding: 36px 0;
  color: var(--muted);
  font-size: .9rem;
  border-top: 1px solid var(--line);
  background: radial-gradient(800px 400px at 50% -10%, rgba(255, 215, 102, 0.04), transparent);
}

.ktl-backtop {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: rgba(255, 215, 102, .12);
  color: var(--gold);
  border: 1px solid rgba(255, 215, 102, .35);
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: all .25s ease;
}

.ktl-backtop:hover {
  background: rgba(255, 215, 102, .3);
  color: #fff;
}

/* ============================================================ */
/* ======= FIX RESPONSIVE ======= */
html,
body {
  overflow-x: hidden;
}

.ktl-container {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(14px, 3vw, 24px);
  box-sizing: border-box;
}

.ktl-hero-mini,
.ktl-section,
.ktl-footer {
  overflow-x: hidden;
}

.ktl-grid-2,
.ktl-grid-3 {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.ktl-gallery img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .ktl-nav {
    padding: 12px 18px;
  }

  .ktl-burger {
    z-index: 2000;
  }

  .ktl-menu {
    position: fixed;
    inset: 70px 12px auto 12px;
    width: auto;
    max-width: calc(100% - 24px);
    overflow-y: auto;
  }
}

@media (max-width: 480px) {
  .ktl-title-lg {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  .ktl-title-md {
    font-size: 1.25rem;
  }

  .ktl-gallery img {
    height: auto;
  }

  .ktl-btn {
    width: 100%;
    text-align: center;
  }
}