/* --- Cài đặt chung & Biến --- */

:root {
  --primary-color: #007bff;

  --secondary-color: #6c757d;

  --background-color: #f8f9fa;

  --surface-color: #ffffff;

  --text-color: #343a40;

  --heading-color: #212529;

  --border-color: #dee2e6;

  --star-color: #ffc107;

  --tag-bg: #e9ecef;

  --tag-text: #495057;

  --success-color: #28a745;

  --shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

* {
  box-sizing: border-box;

  margin: 0;

  padding: 0;
}

html {
  scroll-behavior: smooth;

  scroll-padding-top: 100px;
}

body {
  font-family: "Be Vietnam Pro", sans-serif;

  line-height: 1.6;

  background-color: var(--background-color);

  color: var(--text-color);
}

.container {
  max-width: 1100px;

  margin: 0 auto;

  padding: 0 20px;
}

h2 {
  font-size: 2.2em;

  color: var(--heading-color);

  text-align: center;

  margin-bottom: 40px;
}

/* --- Header & Navigation --- */

.main-header {
  background-color: var(--surface-color);

  padding: 15px 0;

  position: sticky;

  top: 0;

  z-index: 1000;

  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);

  border-bottom: 1px solid var(--border-color);
}

.main-header .container {
  display: flex;

  justify-content: space-between;

  align-items: center;
}

.logo {
  font-size: 1.8em;

  font-weight: 700;

  color: var(--heading-color);

  text-decoration: none;
}

.main-nav > ul {
  list-style: none;

  display: flex;

  align-items: center;

  margin: 0;

  padding: 0;
}

.main-nav ul li {
  margin: 0 10px;
}

.main-nav ul li a {
  text-decoration: none;

  color: var(--text-color);

  font-weight: 500;

  padding: 8px 12px;

  border-radius: 5px;

  transition: background-color 0.3s, color 0.3s;

  display: flex;

  align-items: center;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
  background-color: var(--primary-color);

  color: #fff;
}

/* --- Menu Xổ Xuống --- */

.dropdown {
  position: relative;
}

.dropdown .arrow {
  font-size: 0.8em;

  margin-left: 4px;

  transition: transform 0.3s ease;
}

.dropdown.open .arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;

  position: absolute;

  top: 100%;

  left: 0;

  background-color: var(--surface-color);

  border-radius: 8px;

  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);

  list-style: none;

  padding: 10px 0;

  margin-top: 10px;

  min-width: 250px;

  z-index: 1001;

  border: 1px solid var(--border-color);
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu li a {
  padding: 10px 20px;

  font-size: 0.9em;

  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background-color: var(--primary-color);

  color: #fff;
}

/* --- Phần Hero --- */

.hero {
  background-color: var(--surface-color);

  text-align: center;

  padding: 60px 20px;

  border-bottom: 1px solid var(--border-color);
}

.hero h1 {
  font-size: 2.8em;

  color: var(--heading-color);

  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2em;

  max-width: 700px;

  margin: 0 auto;

  color: var(--secondary-color);
}

/* --- Mục Giới Thiệu --- */

.about-section {
  padding: 60px 0;

  background-color: var(--surface-color);
}

.about-content {
  display: flex;

  align-items: center;

  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  text-align: left;

  margin-bottom: 10px;
}

.about-text h3 {
  font-size: 1.5em;

  margin-bottom: 20px;

  color: var(--primary-color);
}

.about-text p {
  margin-bottom: 15px;
}

.about-image {
  flex: 0 0 45%;
}

.about-image img {
  width: 100%;

  border-radius: 12px;

  box-shadow: var(--shadow);
}

/* --- Showcase Landing Page --- */

.lp-showcase {
  padding: 60px 0;
}

.lp-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));

  gap: 30px;
}

/* === PHẦN QUAN TRỌNG: ĐÃ XÓA HIỆU ỨNG GÂY LỖI === */

.lp-card {
  background-color: var(--surface-color);

  border-radius: 12px;

  box-shadow: var(--shadow);

  overflow: hidden;

  display: flex;

  flex-direction: column;

  transition: transform 0.3s ease, box-shadow 0.3s ease;

  /* Các thuộc tính opacity và transform gây lỗi đã bị xóa */
}

.lp-card:hover {
  transform: translateY(-8px);

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.lp-image img {
  width: 100%;

  height: 220px;

  object-fit: cover;

  display: block;

  border-bottom: 1px solid var(--border-color);
}

.lp-info {
  padding: 20px;

  display: flex;

  flex-direction: column;

  flex-grow: 1;
}

.lp-info h3 {
  font-size: 1.3em;

  margin-bottom: 8px;
}

.lp-info p {
  font-size: 0.9em;

  color: var(--secondary-color);

  margin-bottom: 15px;

  flex-grow: 1;
}

.lp-tags {
  display: flex;

  flex-wrap: wrap;

  gap: 6px;

  margin-bottom: 15px;
}

.lp-tags span {
  background-color: var(--tag-bg);

  color: var(--tag-text);

  font-size: 0.75em;

  font-weight: 500;

  padding: 4px 10px;

  border-radius: 12px;
}

.lp-features {
  list-style: none;

  margin: 0 0 15px 0;

  padding: 0;

  font-size: 0.9em;
}

.lp-features li {
  color: var(--secondary-color);

  margin-bottom: 5px;

  display: flex;

  align-items: center;
}

.lp-features li::before {
  content: "✓";

  color: var(--success-color);

  margin-right: 8px;

  font-weight: bold;
}

.lp-meta {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding-top: 15px;

  margin-bottom: 20px;

  border-top: 1px solid var(--border-color);
}

.lp-price {
  font-size: 1.5em;

  font-weight: 700;

  color: var(--primary-color);
}

.lp-rating {
  font-size: 0.9em;

  color: var(--star-color);

  letter-spacing: 1px;
}

.lp-buttons {
  display: flex;

  gap: 10px;

  margin-top: auto;
}

/* --- Các nút --- */

.btn {
  display: inline-block;

  padding: 10px 20px;

  text-decoration: none;

  border-radius: 6px;

  font-weight: 500;

  text-align: center;

  transition: all 0.2s ease-in-out;

  flex-grow: 1;
}

.btn:hover {
  transform: translateY(-2px);

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-demo {
  background-color: #fff;

  color: var(--primary-color);

  border: 1px solid var(--primary-color);
}

.btn-demo:hover {
  background-color: var(--primary-color);

  color: #fff;
}

.btn-buy {
  background-color: var(--primary-color);

  color: #fff;

  border: 1px solid var(--primary-color);
}

.btn-buy:hover {
  background-color: #0056b3;

  border-color: #0056b3;
}

/* --- Footer --- */

.main-footer {
  background-color: var(--heading-color);

  color: #fff;

  text-align: center;

  padding: 20px 0;

  margin-top: 40px;
}

/* --- Responsive --- */

@media (max-width: 900px) {
  .main-header .container,
  .about-content {
    flex-direction: column;
  }

  .main-header .container {
    gap: 15px;
  }

  .about-content {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  h2 {
    font-size: 2em;
  }

  .hero h1 {
    font-size: 2.2em;
  }

  .lp-grid {
    grid-template-columns: 1fr;
  }
}
