/* style/gdpr.css */
:root {
  --primary-color: #E0B400; /* Màu vàng kim */
  --secondary-color: #1A1A2E; /* Màu xanh đậm */
  --accent-color: #00BFFF; /* Màu xanh điện */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-light: #f8f9fa;
  --bg-dark: #121212; /* Giả định màu nền body tối */
  --border-color: #e0e0e0;
}

.page-gdpr {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Màu chữ sáng trên nền tối */
  background-color: var(--bg-dark); /* Nền tối cho toàn bộ trang */
}

/* Đảm bảo nội dung không bị che bởi header cố định */
.page-gdpr__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Desktop: Điều chỉnh dựa trên chiều cao header thực tế */
}

.page-gdpr__video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-gdpr__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-gdpr__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-gdpr__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Tỷ lệ 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-gdpr__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none; /* Ngăn chặn điều khiển video chặn sự kiện click */
}

.page-gdpr__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.page-gdpr__video-link:hover .page-gdpr__video-overlay {
  opacity: 1;
}

.page-gdpr__video-click-hint {
  color: var(--text-light);
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  background: rgba(0, 123, 255, 0.8);
  border-radius: 5px;
  white-space: nowrap;
}

.page-gdpr__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.page-gdpr__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color); /* Sử dụng màu chính */
  color: var(--secondary-color); /* Chữ màu xanh đậm */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
}

.page-gdpr__play-now-button:hover {
  background: var(--accent-color); /* Hover màu xanh điện */
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-gdpr__title-section {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--secondary-color); /* Nền xanh đậm */
  color: var(--text-light);
}

.page-gdpr__title-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-gdpr__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--primary-color); /* Tiêu đề màu vàng kim */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-gdpr__title-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.8);
}

.page-gdpr__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-gdpr__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-gdpr__cta-button--primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.page-gdpr__cta-button--primary:hover {
  background-color: var(--accent-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.page-gdpr__cta-button--secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-gdpr__cta-button--secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.page-gdpr__faq-section {
  padding: 80px 20px;
  background-color: var(--bg-dark); /* Nền tối */
  color: var(--text-light);
}

.page-gdpr__faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-gdpr__faq-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 50px;
  color: var(--primary-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--secondary-color); /* Nền xanh đậm cho câu hỏi */
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-gdpr__faq-question:hover {
  background: #2A2A4E; /* Màu xanh đậm hơn khi hover */
  border-color: rgba(255, 255, 255, 0.2);
}

.page-gdpr__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color); /* Tiêu đề câu hỏi màu vàng kim */
  pointer-events: none; /* Ngăn chặn h3 chặn sự kiện click */
}

.page-gdpr__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Ngăn chặn icon chặn sự kiện click */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
  color: var(--accent-color);
  transform: rotate(45deg); /* Xoay dấu '+' thành 'x' */
}

.page-gdpr__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background-color: var(--bg-dark); /* Nền tối cho câu trả lời */
  color: rgba(255, 255, 255, 0.7);
  border-radius: 0 0 8px 8px;
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
  max-height: 2000px !important; /* Đủ lớn để chứa mọi nội dung */
  padding: 20px 25px !important;
  opacity: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-gdpr__faq-answer p {
  margin: 0;
  font-size: 0.95em;
}

.page-gdpr__brand-section {
  padding: 80px 20px;
  background-color: var(--secondary-color); /* Nền xanh đậm */
  color: var(--text-light);
}

.page-gdpr__brand-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-gdpr__brand-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 50px;
  color: var(--primary-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.page-gdpr__brand-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-gdpr__brand-item {
  background-color: var(--bg-dark); /* Nền tối cho item */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-gdpr__brand-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-gdpr__brand-item-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-gdpr__brand-item p {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.7);
}

.page-gdpr__brand-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-gdpr__blog-section {
  padding: 80px 20px;
  background-color: var(--bg-dark); /* Nền tối */
  color: var(--text-light);
}

.page-gdpr__blog-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-gdpr__blog-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 50px;
  color: var(--primary-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.page-gdpr__blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-gdpr__blog-item {
  background-color: var(--secondary-color); /* Nền xanh đậm cho bài viết */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-gdpr__blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-gdpr__blog-link {
  display: block;
  padding: 25px;
  text-decoration: none;
  color: inherit;
}

.page-gdpr__blog-item-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 20px;
}

.page-gdpr__blog-item-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-gdpr__blog-item-excerpt {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 15px;
  height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.page-gdpr__blog-item-date {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.5);
  display: block;
  text-align: right;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-gdpr__main-title {
    font-size: 2.8em;
  }
  .page-gdpr__faq-title,
  .page-gdpr__brand-title,
  .page-gdpr__blog-title {
    font-size: 2.2em;
  }
  .page-gdpr__brand-content,
  .page-gdpr__blog-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-gdpr__video-section {
    padding-top: 10px !important; /* Mobile: Điều chỉnh dựa trên chiều cao header thực tế */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-gdpr__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  
  .page-gdpr__video-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-gdpr__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 4px;
    overflow: hidden !important;
  }
  
  .page-gdpr__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
    object-fit: contain;
  }
  
  .page-gdpr__video-cta {
    margin-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .page-gdpr__play-now-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-gdpr__main-title {
    font-size: 2em;
  }
  .page-gdpr__title-description {
    font-size: 1em;
  }
  .page-gdpr__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-gdpr__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-gdpr__title-section,
  .page-gdpr__faq-section,
  .page-gdpr__brand-section,
  .page-gdpr__blog-section {
    padding: 40px 15px;
  }
  .page-gdpr__faq-title,
  .page-gdpr__brand-title,
  .page-gdpr__blog-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-gdpr__faq-question {
    padding: 15px 18px;
  }
  .page-gdpr__faq-question h3 {
    font-size: 1em;
  }
  .page-gdpr__faq-answer {
    padding: 0 18px;
  }
  .page-gdpr__faq-item.active .page-gdpr__faq-answer {
    padding: 15px 18px !important;
  }
  .page-gdpr__brand-content,
  .page-gdpr__blog-list {
    grid-template-columns: 1fr;
  }
  .page-gdpr__brand-item-title {
    font-size: 1.5em;
  }
  .page-gdpr__blog-item-title {
    font-size: 1.2em;
  }
  .page-gdpr img,
  .page-gdpr__brand-image,
  .page-gdpr__blog-item-image {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  .page-gdpr__brand-item,
  .page-gdpr__blog-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-gdpr__video-click-hint {
    font-size: 14px !important;
    padding: 8px 16px !important;
  }
}

@media (max-width: 480px) {
  .page-gdpr__main-title {
    font-size: 1.8em;
  }
  .page-gdpr__faq-title,
  .page-gdpr__brand-title,
  .page-gdpr__blog-title {
    font-size: 1.5em;
  }
  .page-gdpr__faq-question h3 {
    font-size: 0.95em;
  }
  .page-gdpr__faq-toggle {
    font-size: 20px;
  }
  .page-gdpr__brand-item-title {
    font-size: 1.3em;
  }
  .page-gdpr__blog-item-title {
    font-size: 1.1em;
  }
}