/* style/resources.css */

/* Biến CSS */
:root {
  --primary-color: #FFD700; /* Gold - Màu vàng kim làm điểm nhấn */
  --secondary-color: #1A202C; /* Deep Charcoal - Màu than đá sâu làm chủ đạo */
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #000000; /* Body background */
  --background-card-dark: rgba(255, 255, 255, 0.1);
  --background-card-light: #ffffff;
  --border-color: #333;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-dark: rgba(0, 0, 0, 0.3);
}

/* Thiết lập chung cho trang Tài Nguyên */
.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Màu chữ mặc định cho body background #000 */
  background-color: var(--background-dark); /* Body background */
  overflow-x: hidden;
}

.page-resources__main-content-wrapper {
  padding-top: 120px; /* Khoảng cách trên cho nội dung để không bị header cố định che khuất */
}

.page-resources__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-resources__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.page-resources__section-title .highlight {
  color: var(--text-light);
}

.page-resources__section-description {
  font-size: 18px;
  color: #ccc;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__hero-section {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #000000 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-resources__hero-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.page-resources__hero-title {
  font-size: 48px;
  font-weight: 900;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-resources__hero-title .highlight {
  color: var(--primary-color);
}

.page-resources__hero-description {
  font-size: 20px;
  color: #e0e0e0;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__hero-description .highlight {
  color: var(--primary-color);
}

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

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px var(--shadow-dark);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Đảm bảo nút không vượt quá chiều rộng */
  box-sizing: border-box; /* Tính padding và border vào chiều rộng */
  white-space: normal; /* Cho phép chữ xuống dòng */
  word-wrap: break-word; /* Ngắt từ khi cần */
}

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

.page-resources__cta-button--primary:hover {
  background-color: #FFC107; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--shadow-dark);
}

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

.page-resources__cta-button--secondary:hover {
  background-color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--shadow-dark);
}

/* General Section Styles */
.page-resources__guides-section, .page-resources__faq-section, .page-resources__brand-section, .page-resources__blog-section, .page-resources__contact-section {
  padding: 80px 0;
}

.page-resources__dark-section {
  background-color: var(--secondary-color);
  color: var(--text-light);
}

/* Guides Section */
.page-resources__guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources__guide-card {
  background: var(--background-card-dark);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px var(--shadow-dark);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,0.15);
}

.page-resources__guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-dark);
}

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

.page-resources__guide-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-resources__guide-title .highlight {
  color: var(--text-light);
}

.page-resources__guide-text {
  font-size: 16px;
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__guide-text .highlight {
  color: var(--primary-color);
}

.page-resources__guide-link {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-resources__guide-link:hover {
  background-color: #FFC107;
}

/* FAQ Section */
.page-resources__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--background-card-dark);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources__faq-question:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-light);
  pointer-events: none;
}

.page-resources__faq-question h3 .highlight {
  color: var(--primary-color);
}

.page-resources__faq-toggle {
  font-size: 28px;
  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;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  color: var(--text-light);
  transform: rotate(45deg);
}

.page-resources__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;
  color: #e0e0e0;
  background: rgba(255, 255, 255, 0.03);
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.page-resources__faq-answer p {
  margin-bottom: 15px;
  font-size: 16px;
  color: #e0e0e0;
}

.page-resources__inline-button {
  display: inline-block;
  padding: 8px 18px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 14px;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

.page-resources__inline-button:hover {
  background-color: #FFC107;
}

/* Brand Section */
.page-resources__brand-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-resources__brand-item {
  background: var(--background-card-dark);
  border-radius: 10px;
  padding: 30px 20px;
  box-shadow: 0 5px 15px var(--shadow-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255,255,255,0.15);
}

.page-resources__brand-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-dark);
}

.page-resources__brand-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-resources__brand-item-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-resources__brand-item-title .highlight {
  color: var(--text-light);
}

.page-resources__brand-item-text {
  font-size: 16px;
  color: #e0e0e0;
}

/* Blog Section */
.page-resources__blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources__blog-item {
  background: var(--background-card-dark);
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow-dark);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255,255,255,0.15);
}

.page-resources__blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-dark);
}

.page-resources__blog-link {
  text-decoration: none;
  display: block;
  color: var(--text-light);
}

.page-resources__blog-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.page-resources__blog-item-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  padding: 15px 20px 0;
  margin-bottom: 10px;
}

.page-resources__blog-item-title .highlight {
  color: var(--text-light);
}

.page-resources__blog-item-excerpt {
  font-size: 15px;
  color: #e0e0e0;
  padding: 0 20px 15px;
}

.page-resources__blog-item-date {
  display: block;
  font-size: 13px;
  color: #999;
  padding: 0 20px 20px;
}

.page-resources__blog-cta {
  text-align: center;
  margin-top: 50px;
}

/* Contact Section */
.page-resources__contact-section {
  text-align: center;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__section-title {
    font-size: 32px;
  }
  .page-resources__hero-title {
    font-size: 42px;
  }
}

@media (max-width: 768px) {
  .page-resources__main-content-wrapper {
    padding-top: 100px; /* Điều chỉnh khoảng cách trên cho mobile */
  }

  .page-resources__container {
    padding: 0 15px;
  }

  .page-resources__hero-section {
    padding: 60px 0;
  }

  .page-resources__hero-title {
    font-size: 32px;
  }

  .page-resources__hero-description {
    font-size: 18px;
  }

  .page-resources__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources__cta-button {
    width: 100%;
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-resources__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-resources__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-resources__guides-section, .page-resources__faq-section, .page-resources__brand-section, .page-resources__blog-section, .page-resources__contact-section {
    padding: 60px 0;
  }

  .page-resources__guide-card, .page-resources__brand-item, .page-resources__blog-item {
    padding: 20px;
  }

  .page-resources__guide-image {
    height: 180px;
  }

  .page-resources__guide-title, .page-resources__brand-item-title {
    font-size: 20px;
  }

  .page-resources__guide-text, .page-resources__brand-item-text {
    font-size: 15px;
  }

  .page-resources__faq-question {
    padding: 15px 20px;
  }

  .page-resources__faq-question h3 {
    font-size: 16px;
  }

  .page-resources__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }

  .page-resources__faq-answer {
    padding: 0 20px;
  }

  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px 20px !important;
  }

  .page-resources__blog-image {
    height: 180px;
  }

  .page-resources__blog-item-title {
    font-size: 18px;
    padding: 15px 15px 0;
  }

  .page-resources__blog-item-excerpt, .page-resources__blog-item-date {
    font-size: 14px;
    padding: 0 15px 15px;
  }

  .page-resources__blog-item-date {
    padding-bottom: 15px;
  }

  .page-resources__contact-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Responsive for all images, videos, and buttons */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources video,
  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__guides-grid,
  .page-resources__brand-content,
  .page-resources__blog-list,
  .page-resources__hero-cta-buttons,
  .page-resources__contact-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-resources__cta-button,
  .page-resources__btn-primary,
  .page-resources__btn-secondary,
  .page-resources a[class*="button"],
  .page-resources a[class*="btn"],
  .page-resources__inline-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}