/* style/beginner-guide.css */
:root {
  --primary-color: #0A2463;
  --secondary-color: #E34234;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0f0f0f;
  --bg-light: #f8f9fa;
  --border-color: #e0e0e0;
}

.page-beginner-guide {
  font-family: 'Arial', sans-serif;
  color: var(--text-light); /* Body background is dark, so use light text */
  line-height: 1.6;
  padding-top: 120px; /* Adjust for fixed header on desktop */
}

/* Video Section */
.page-beginner-guide__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Desktop: Adjust for fixed header, should be less than main padding-top */
}

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

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

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

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

.page-beginner-guide__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none; /* Prevent video controls from blocking click event */
}

.page-beginner-guide__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.4);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

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

.page-beginner-guide__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(var(--secondary-color), 0.8);
  border-radius: 5px;
  white-space: nowrap;
}

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

.page-beginner-guide__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--text-light);
  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-beginner-guide__play-now-button:hover {
  background: #c7372b;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-beginner-guide__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* General Section Styles */
.page-beginner-guide__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-light);
}

.page-beginner-guide__sub-title {
  font-size: 24px;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--text-light);
}

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

.page-beginner-guide__content-section {
  padding: 80px 0;
}

.page-beginner-guide__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-beginner-guide__light-bg {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-beginner-guide__light-bg .page-beginner-guide__section-title,
.page-beginner-guide__light-bg .page-beginner-guide__sub-title {
  color: var(--text-dark);
}

.page-beginner-guide__text-block p,
.page-beginner-guide__text-block li {
  margin-bottom: 15px;
  font-size: 17px;
  line-height: 1.7;
}

.page-beginner-guide__text-block ul,
.page-beginner-guide__text-block ol {
  margin-left: 25px;
  margin-bottom: 15px;
}

.page-beginner-guide__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Title Section */
.page-beginner-guide__title-section {
  padding: 80px 0 60px 0;
  text-align: center;
}

.page-beginner-guide__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-beginner-guide__title-description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

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

.page-beginner-guide__cta-button {
  display: inline-block;
  padding: 15px 35px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
}

.page-beginner-guide__cta-button:hover {
  background: #c7372b;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-beginner-guide__btn-primary {
  background: var(--secondary-color);
  color: var(--text-light);
}

.page-beginner-guide__btn-primary:hover {
  background: #c7372b;
}

.page-beginner-guide__btn-secondary {
  background: var(--primary-color);
  color: var(--text-light);
  border: 1px solid var(--text-light);
}

.page-beginner-guide__btn-secondary:hover {
  background: #071a44;
  border-color: var(--secondary-color);
}

/* FAQ Section */
.page-beginner-guide__faq-section {
  padding: 80px 0;
}

.page-beginner-guide__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-beginner-guide__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-beginner-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  color: var(--text-dark);
}

.page-beginner-guide__faq-item.active .page-beginner-guide__faq-answer {
  max-height: 2000px !important; /* Sufficiently large value */
  padding: 20px 15px !important;
  opacity: 1;
  background: var(--bg-light);
  border-radius: 0 0 5px 5px;
}

.page-beginner-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--text-light);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-beginner-guide__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-beginner-guide__faq-question:active {
  background: #eeeeee;
}

.page-beginner-guide__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: var(--text-dark);
}

.page-beginner-guide__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-beginner-guide__faq-item.active .page-beginner-guide__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Change to X or rotate */
}

/* Brand Section */
.page-beginner-guide__brand-section {
  padding: 80px 0;
}

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

.page-beginner-guide__brand-item {
  background: var(--text-light);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  color: var(--text-dark);
}

.page-beginner-guide__brand-item h3 {
  color: var(--primary-color);
  font-size: 22px;
  margin-bottom: 15px;
}

/* Blog Section */
.page-beginner-guide__blog-section {
  padding: 80px 0;
}

.page-beginner-guide__blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-beginner-guide__blog-item {
  background: var(--text-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-beginner-guide__blog-link {
  display: block;
  text-decoration: none;
  color: var(--text-dark);
}

.page-beginner-guide__blog-item-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-beginner-guide__blog-item-title {
  font-size: 20px;
  font-weight: bold;
  margin: 15px;
  color: var(--primary-color);
}

.page-beginner-guide__blog-item-excerpt {
  font-size: 15px;
  margin: 0 15px 15px;
  line-height: 1.6;
}

.page-beginner-guide__blog-item-date {
  display: block;
  font-size: 14px;
  color: #777;
  margin: 0 15px 15px;
}

.page-beginner-guide__blog-cta {
  margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-beginner-guide__main-title {
    font-size: 40px;
  }
  .page-beginner-guide__section-title {
    font-size: 30px;
  }
  .page-beginner-guide__sub-title {
    font-size: 20px;
  }
  .page-beginner-guide__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-beginner-guide__blog-item-title {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-beginner-guide {
    padding-top: 100px !important; /* Mobile: Adjust for fixed header */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-beginner-guide__video-section {
    padding-top: 10px !important; /* Mobile: Adjust for fixed header */
    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-beginner-guide__video-container,
  .page-beginner-guide__video-link,
  .page-beginner-guide__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-beginner-guide__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain;
  }

  .page-beginner-guide__video-cta {
    margin-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .page-beginner-guide__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-beginner-guide__video-click-hint {
    font-size: 14px !important;
    padding: 8px 16px !important;
  }

  .page-beginner-guide__container {
    padding: 0 15px;
  }
  
  .page-beginner-guide__content-section {
    padding: 50px 0;
  }

  .page-beginner-guide__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

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

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

  .page-beginner-guide__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-beginner-guide__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  .page-beginner-guide__text-block p,
  .page-beginner-guide__text-block li {
    font-size: 16px;
  }

  .page-beginner-guide__faq-question {
    padding: 15px;
  }

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

  .page-beginner-guide__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-beginner-guide__faq-item.active .page-beginner-guide__faq-answer {
    padding: 15px !important;
  }

  .page-beginner-guide__brand-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-beginner-guide__blog-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .page-beginner-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-beginner-guide__brand-item,
  .page-beginner-guide__blog-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}