/* css/style.css */
:root {
  --primary-accent: #74ebd5; /* Màu gradient chính 1 */
  --secondary-accent: #acb6e5; /* Màu gradient chính 2 */
  --text-color: #343a40; /* Xám đậm */
  --text-color-light: #ffffff;
  --card-bg: #ffffff;
  --primary-btn-color: #5e79d4; /* Một màu từ gradient hoặc màu tương phản đẹp */
}

html {
  scroll-padding-top: 70px; /* Khoảng cách khi scroll tới section, bằng chiều cao navbar */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-color);
    background: linear-gradient( 135deg, var(--primary-accent) 0%, var(--secondary-accent) 100% );
    background-attachment: fixed; /* Giữ gradient cố định khi cuộn */
    line-height: 1.7;
}

/* Navbar */
.navbar {
  transition: background-color 0.3s ease-in-out;
}
.navbar-brand img {
  max-height: 40px;
}
.navbar .btn-primary {
  background-color: var(--primary-btn-color);
  border-color: var(--primary-btn-color);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.navbar .btn-primary:hover {
  background-color: #4a62b3; /* Darker shade */
  border-color: #4a62b3;
}
.nav-link.active,
.dropdown-item.active {
  color: var(--primary-btn-color) !important;
  font-weight: bold;
}

/* Hero Section */
.hero-section {
  /* background-color đã bị body override, nên section này sẽ trong suốt với gradient */
  padding-top: 5rem;
  padding-bottom: 5rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-section h1 {
  font-size: 2.8rem; /* Điều chỉnh kích thước nếu cần */
}
.hero-image-container img {
  border: 5px solid rgba(255, 255, 255, 0.3);
}
.hero-section .btn-light {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--primary-btn-color);
  border-color: rgba(255, 255, 255, 0.9);
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
}
.hero-section .btn-light:hover {
  background-color: white;
  border-color: white;
}
.hero-section .btn-outline-light {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  border-width: 2px;
}
.hero-section .btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* General Sections (non-hero) */
#features-overview,
.features-main-section {
  background-color: transparent; /* Để gradient của body hiển thị */
}
#features-overview h2,
.features-main-section h2 {
  /* Cho tiêu đề mục lớn */
  color: var(
    --text-color-light
  ); /* Có thể cần điều chỉnh nếu nền gradient sáng */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}
#features-overview p.lead,
.features-main-section p.text-muted {
  color: rgba(
    255,
    255,
    255,
    0.85
  ) !important; /* Chữ sáng hơn trên nền gradient */
}

/* Feature Item Cards */
.feature-item.card {
  background-color: var(--card-bg);
  border: none; /* Bỏ border mặc định của card */
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.feature-item.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.feature-title {
  color: var(--primary-btn-color);
  font-weight: 700;
  margin-bottom: 1rem;
}

.feature-description {
  color: #555;
  margin-bottom: 1.5rem;
}

/* Media Row & Numbering */
.media-container {
  position: relative;
  overflow: hidden; /* Để bo góc cho số */
  border-radius: 0.375rem; /* Bootstrap's default rounded */
}

.media-container img,
.media-container video {
  display: block; /* Loại bỏ khoảng trống dưới ảnh/video */
  width: 100%;
  height: auto; /* Duy trì tỷ lệ khung hình */
  max-height: 300px; /* Giới hạn chiều cao tối đa, tùy chỉnh nếu cần */
  object-fit: cover; /* Cắt ảnh/video cho vừa, có thể đổi thành 'contain' */
}

.media-number {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 3px 7px;
  border-radius: 4px;
  z-index: 1;
  line-height: 1;
}

/* Responsive for media items inside rows */
.feature-media-row .col-12,
.feature-media-row .col-sm-6,
.feature-media-row .col-md-4,
.feature-media-row .col-md-6, /* For 2 items */
.feature-media-row .col-lg-3, /* For 4 items */
.feature-media-row .col-lg-4  /* For 3 items */ {
  display: flex; /* Giúp media-container fill nếu cần */
  flex-direction: column;
}
.feature-media-row .media-container {
  flex-grow: 1; /* Đảm bảo container fill nếu item được set height */
}

/* Final CTA Section */
.final-cta-section {
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); Example secondary gradient */
  /* Hoặc sử dụng màu solid tương phản */
  background-color: rgba(0, 0, 0, 0.1); /* Lớp phủ nhẹ trên gradient chính */
  padding: 4rem 0;
  color: var(--text-color-light);
}
.final-cta-section h2 {
  color: var(--text-color-light);
}
.final-cta-section .lead {
  color: rgba(255, 255, 255, 0.9);
}
.final-cta-section .btn-light {
  background-color: white;
  color: var(--primary-btn-color);
  border-color: white;
}
.final-cta-section .btn-light:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}
.final-cta-section .btn-outline-light {
  border-width: 2px;
}
.final-cta-section .btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
  /* background-color: #2c3e50; /* Darker solid color for footer */
  /* Giữ nguyên bg-dark của Bootstrap hoặc tùy chỉnh */
}
footer a:hover {
  color: var(--primary-accent) !important;
  text-decoration: underline;
}

/* Back to Top Button */
#btn-back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none; /* Hidden by default, shown by JS */
  z-index: 99;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  padding: 0;
  font-size: 1.2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* AOS Animation defaults (can be overridden per element) */
[data-aos] {
  transition-property: transform, opacity; /* Specify what to transition for smoother effects */
}
