:root {
  --gold: #ffd700;
  --gold-grad: linear-gradient(135deg, #ffd700, #b38f00);
  --bg: #0a0a0a;
  --bg-alt: #111;
  --text: #f0f0f0;
  --text-dim: #999;
  --shadow: rgba(255, 215, 0, .2);
}

/* ==================== GLOBAL ==================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body,
.ktl-body {
  font-family: 'Tahoma', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  letter-spacing: 0.1px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.ktl-title,
.ktl-section__title {
  font-family: 'Tahoma', sans-serif;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.ktl-btn {
  font-family: 'Tahoma', sans-serif;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.nav-link,
.ktl-menu a {
  font-family: 'Tahoma', sans-serif;
  font-weight: 500;
}

p,
label,
input,
textarea,
select {
  font-family: 'Tahoma', sans-serif;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
  border: none
}

a {
  text-decoration: none;
  color: inherit
}

a:focus {
  outline: none
}

h1,
h2,
h3 {
  font-family: 'Tahoma', serif
}

button,
input,
select,
textarea {
  font-family: inherit
}

::selection {
  background: var(--gold);
  color: #000
}

/* ==================== HEADER ==================== */
.ktl-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 10, .85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 215, 0, .15);
}

.ktl-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

.ktl-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  color: var(--gold)
}

.ktl-logo img {
  width: 42px;
  height: 42px
}

.ktl-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap
}

.ktl-menu a {
  font-weight: 500;
  transition: .2s;
  color: #eee
}

.ktl-menu a:hover {
  color: var(--gold)
}

.ktl-burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none
}

.ktl-burger span {
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: .3s
}

/* ==================== BUTTON ==================== */
.ktl-btn {
  display: inline-block;
  padding: .55rem 1rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: .25s;
  border: none;
}

.ktl-btn--primary {
  background: var(--gold-grad);
  color: #000
}

.ktl-btn--primary:hover {
  filter: brightness(1.15)
}

.ktl-btn--ghost {
  border: 1px solid rgba(255, 215, 0, .3);
  color: var(--gold);
  background: transparent
}

.ktl-btn--ghost:hover {
  background: rgba(255, 215, 0, .1)
}

.ktl-btn--line {
  border: 1px solid var(--gold);
  color: var(--gold);
  background: none
}

.ktl-btn--line:hover {
  background: var(--gold);
  color: #000
}

.ktl-btn--xl {
  padding: .8rem 1.4rem;
  font-size: 1.05rem
}

/* ==================== HERO ==================== */
.ktl-hero {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden
}

.ktl-hero__bg {
  background: url('../images/full/hero-1920.jpg') center/cover no-repeat;
  position: absolute;
  inset: 0;
  z-index: 0;
  margin-top: 9.5vh;
  transform: scale(1.05);
  transition: transform 1s ease;
}

.ktl-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .2), #000);
  z-index: 1;
}

.ktl-hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 1rem;
  color: #fff
}

.ktl-title-xl {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: .5rem
}

.ktl-title-xl__shine {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  color: transparent
}

.ktl-hero__desc {
  color: #ccc;
  margin-bottom: 1.2rem
}

.ktl-hero__cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap
}

.ktl-scroll-indicator {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .85rem;
  color: var(--gold);
  animation: scrollBlink 1.4s infinite alternate
}

@keyframes scrollBlink {
  from {
    opacity: .2
  }

  to {
    opacity: 1
  }
}

/* ==================== SECTION ==================== */
.ktl-section {
  padding: 5rem 1rem;
  position: relative
}

.ktl-section--dark {
  background: #111;
  color: #f9f9f9
}

.ktl-container {
  max-width: 1200px;
  margin: 0 auto
}

.ktl-section__head {
  text-align: center;
  margin-bottom: 2rem
}

.ktl-title-lg {
  font-size: 2rem;
  margin-bottom: .5rem;
  position: relative;
  display: inline-block
}

.ktl-section__desc {
  color: #bbb;
  font-size: .95rem;
  max-width: 700px;
  margin: 0 auto
}

/* ==================== GRID & CARD ==================== */
.ktl-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.2rem
}

.ktl-card {
  background: #111;
  border: 1px solid rgba(255, 215, 0, .1);
  border-radius: 14px;
  overflow: hidden;
  transition: .3s;
  box-shadow: 0 0 0 transparent;
}

.ktl-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 215, 0, .4);
  box-shadow: 0 10px 20px rgba(255, 215, 0, .08)
}

.ktl-card__media img {
  width: 100%;
  height: auto
}

.ktl-card__body {
  padding: 1rem
}

.ktl-card__title {
  font-size: 1.25rem;
  margin-bottom: .4rem;
  color: var(--gold)
}

.ktl-card__text {
  color: #ccc;
  font-size: .9rem;
  margin-bottom: .8rem
}

.ktl-card__actions {
  display: flex;
  justify-content: space-between;
  align-items: center
}

.ktl-price {
  color: var(--gold);
  font-weight: 600
}

/* ==================== FORM ==================== */
.ktl-form {
  max-width: 700px;
  margin: 0 auto
}

.ktl-form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem
}

.ktl-form__group {
  margin-bottom: 1rem
}

.ktl-form label {
  display: block;
  margin-bottom: .4rem;
  color: var(--gold);
  font-weight: 500
}

.ktl-form input,
.ktl-form select,
.ktl-form textarea {
  width: 100%;
  padding: .55rem .7rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 215, 0, .25);
  background: #1a1a1a;
  color: #fff;
}

.ktl-form input:focus,
.ktl-form textarea:focus,
.ktl-form select:focus {
  outline: none;
  border-color: var(--gold)
}

/* ==================== FAQ ==================== */
details {
  background: #111;
  border-radius: 10px;
  margin: .5rem 0;
  padding: .8rem 1rem;
  border: 1px solid rgba(255, 215, 0, .15);
  transition: .3s
}

details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--gold)
}

details[open] {
  background: #191919;
  border-color: rgba(255, 215, 0, .35)
}

details p {
  margin-top: .5rem;
  color: #ccc
}

/* ==================== FOOTER ==================== */
.ktl-footer {
  text-align: center;
  padding: 2rem 1rem;
  background: #000;
  border-top: 1px solid rgba(255, 215, 0, .15);
  color: #999;
  position: relative
}

.ktl-backtop {
  position: absolute;
  right: 10px;
  top: 10px;
  background: var(--gold-grad);
  color: #000;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  transition: .3s;
  font-weight: 700;
}

.ktl-backtop:hover {
  transform: translateY(-3px)
}

/* ==================== MODAL ==================== */
.ktl-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: all .3s ease;
  z-index: 9999;
}

.ktl-modal.is-open {
  visibility: visible;
  opacity: 1
}

.ktl-modal__dialog {
  background: #111;
  border: 1px solid rgba(255, 215, 0, 0.25);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
  border-radius: 12px;
  padding: 2rem;
  max-width: 420px;
  width: 90%;
  position: relative;
  transform: translateY(40px);
  transition: transform .35s ease;
}

.ktl-modal.is-open .ktl-modal__dialog {
  transform: translateY(0)
}

.ktl-modal__close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 1.8rem;
  color: var(--gold);
  cursor: pointer;
  border: none;
  background: none;
  transition: transform .2s;
}

.ktl-modal__close:hover {
  transform: scale(1.15);
  color: #fff
}

/* ==================== USER MENU ==================== */
.ktl-usermenu {
  position: relative
}

.ktl-usermenu__btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255, 215, 0, .12);
  color: var(--gold);
  padding: .45rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 215, 0, .25);
  cursor: pointer;
}

.ktl-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffda44, #b38f00);
  color: #000;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.ktl-usermenu__dropdown {
  position: absolute;
  right: 0;
  top: 110%;
  background: #111;
  border: 1px solid rgba(255, 215, 0, .25);
  border-radius: 10px;
  min-width: 180px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: .2s;
  padding: .4rem;
  z-index: 10;
}

.ktl-usermenu__dropdown a {
  display: block;
  padding: .55rem .7rem;
  border-radius: 8px;
  color: #eee;
}

.ktl-usermenu__dropdown a:hover {
  background: rgba(255, 215, 0, .12);
  color: #fff
}

.ktl-usermenu.open .ktl-usermenu__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0)
}

/* ==================== STARS (rating) ==================== */
.ktl-stars {
  display: flex;
  gap: .35rem;
  font-size: 1.8rem;
  cursor: pointer;
  user-select: none
}

.ktl-star {
  color: #555;
  transition: .15s
}

.ktl-star:hover {
  transform: scale(1.1)
}

.ktl-star.is-active {
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, .45)
}

/* ==================== SWIPER ==================== */
.ktl-swiper img {
  border-radius: 14px
}

.ktl-swiper__nav {
  color: var(--gold)
}

.swiper-pagination-bullet {
  background: var(--gold) !important;
  opacity: .5
}

.swiper-pagination-bullet-active {
  opacity: 1
}

/* ==================== REVEAL ANIMATION ==================== */
.ktl-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: .6s ease
}

.ktl-reveal.is-in {
  opacity: 1;
  transform: none
}

.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;
  }
}

/* ==================== RESPONSIVE ==================== */
@media(max-width:992px) {
  .ktl-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: #111;
    padding: 1rem;
    border-radius: 0 0 12px 12px;
    width: 100%;
    border-top: 1px solid rgba(255, 215, 0, .15)
  }

  .ktl-hero__bg {
    background: url('../images/thumb/hero-800.webp') center/cover no-repeat !important;
  }

  .ktl-menu.is-open {
    display: flex
  }

  .ktl-burger {
    display: flex
  }

  .ktl-menu .ktl-btn--line {
    margin-left: .3rem;
  }
}

@media(max-width:600px) {
  .ktl-title-xl {
    font-size: 1.8rem
  }

  .ktl-hero__bg {
    background: url('../images/thumb/hero-800.webp') center/cover no-repeat !important;
  }

  .ktl-title-lg {
    font-size: 1.5rem
  }

  .ktl-section {
    padding: 3.5rem 1rem
  }
}

/* === FIX CHIỀU CAO ẢNH DỊCH VỤ === */
#services .ktl-card__media img {
  width: 100%;
  height: 240px;
  /* bạn có thể tăng 260px nếu muốn hình to hơn */
  object-fit: cover;
  object-position: center;
  border-radius: 0.75rem 0.75rem 0 0;
  /* bo góc trên mềm như cũ */
  display: block;
}

/* responsive nhỏ hơn 768px → tự co lại */
@media (max-width: 768px) {
  #services .ktl-card__media img {
    height: 200px;
  }

  .ktl-hero__bg {
    background: url('../images/thumb/hero-800.webp') center/cover no-repeat !important;
  }
}

/* === FIX CHIỀU CAO ẢNH TRONG GALLERY === */
#gallery .swiper-slide img {
  width: 100%;
  height: 280px;
  /* bạn có thể chỉnh 260–300px tùy khung */
  object-fit: cover;
  object-position: center;
  border-radius: 1rem;
  display: block;
  transition: transform .35s ease, box-shadow .35s ease;
}

/* Hiệu ứng hover nhẹ cho ảnh */
#gallery .swiper-slide:hover img {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* responsive nhỏ hơn 768px */
@media (max-width: 768px) {
  #gallery .swiper-slide img {
    height: 200px;
  }

  .ktl-hero__bg {
    background: url('../images/thumb/hero-800.webp') center/cover no-repeat !important;
  }
}

/* ===== CONTACT SECTION ===== */
#contact .ktl-contact__list li {
  color: #ddd;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  line-height: 1.5;
}

#contact .ktl-contact__list a {
  color: #ffde59;
  text-decoration: none;
}

#contact .ktl-contact__list a:hover {
  text-decoration: underline;
}

.ktl-contact__form {
  background: #111;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.ktl-contact__form label {
  display: block;
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.ktl-contact__form input,
.ktl-contact__form textarea {
  width: 100%;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin-bottom: 1rem;
  font-family: 'Tahoma', sans-serif;
}

.ktl-contact__form input:focus,
.ktl-contact__form textarea:focus {
  outline: 2px solid #ffde59;
}

.ktl-btn--gold {
  background: linear-gradient(45deg, #ffcc00, #ffde59);
  color: #111;
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.8rem 1.2rem;
  transition: transform .3s ease, box-shadow .3s ease;
}

.ktl-btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.ktl-alert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  animation: fadeOut 5s ease forwards;
}

.ktl-alert--success {
  background: linear-gradient(90deg, #16a34a, #22c55e);
  color: #fff;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

@keyframes fadeOut {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }

  10%,
  90% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-10px);
    display: none;
  }
}