:root {
  --primary-color: #003366;
  --secondary-color: #FFCC00;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #000000;
  --background-light: #f5f5f5;
  --border-color: #e0e0e0;
}

/* Base styles for the page content, ensuring contrast with dark body background */
.page-about {
  font-family: 'Arial', sans-serif;
  color: var(--text-light); /* Light text for dark body background */
  background-color: var(--background-dark); /* Ensure explicit background if needed */
  line-height: 1.6;
  padding-bottom: 80px; /* Space for footer */
}

.page-about__section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Video Section Styles */
.page-about__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Adjusted for fixed header */
  background-color: var(--background-dark);
}

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

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

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

.page-about__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.3);
}

.page-about__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 on parent <a> */
}

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

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

.page-about__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(--primary-color-rgb, 0, 51, 102), 0.8);
  border-radius: 5px;
  white-space: nowrap;
}

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

.page-about__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color); /* Gold color for CTA */
  color: var(--text-dark); /* Dark text on gold */
  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.2);
  border: none;
  cursor: pointer;
}

.page-about__play-now-button:hover {
  background: #e6b800; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

/* Title Section */
.page-about__title-section {
  text-align: center;
  padding: 60px 20px;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-about__main-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.page-about__title-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.8;
}

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

.page-about__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--secondary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__cta-button:hover {
  background: #e6b800;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

/* Brand Section Styles */
.page-about__brand-section {
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: 60px 20px;
}

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

.page-about__brand-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--secondary-color);
}

.page-about__brand-intro-text {
  font-size: 18px;
  text-align: center;
  margin-bottom: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

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

.page-about__brand-item {
  background: rgba(var(--primary-color-rgb, 0, 51, 102), 0.7);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
}

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

.page-about__brand-item-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-about__brand-item p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.page-about__brand-item ul {
  list-style: disc inside;
  padding-left: 20px;
  margin-bottom: 15px;
}

.page-about__brand-item li {
  margin-bottom: 8px;
  font-size: 16px;
}

.page-about__brand-item-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-top: auto; /* Push image to bottom if content is shorter */
  margin-bottom: 0;
  max-width: 100%;
  display: block;
}

/* FAQ Section Styles */
.page-about__faq-section {
  background-color: var(--background-light);
  padding: 60px 20px;
  color: var(--text-dark);
}

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

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

.page-about__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--primary-color);
}

.page-about__faq-question:hover {
  background: var(--background-light);
  border-color: #d0d0d0;
}

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

.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
}

.page-about__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: 32px;
  height: 32px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg); /* Rotate for minus sign effect */
  color: var(--secondary-color);
}

.page-about__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: #fdfdfd;
  color: var(--text-dark);
  border-top: none;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to accommodate content */
  padding: 20px 25px !important;
  opacity: 1;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.page-about__faq-answer p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

/* Blog Section Styles */
.page-about__blog-section {
  background-color: var(--background-dark);
  padding: 60px 20px;
  color: var(--text-light);
}

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

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

.page-about__blog-intro-text {
  font-size: 18px;
  text-align: center;
  margin-bottom: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

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

.page-about__blog-item {
  background: rgba(var(--primary-color-rgb, 0, 51, 102), 0.7);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
}

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

.page-about__blog-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px;
}

.page-about__blog-item-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  max-width: 100%;
  display: block;
}

.page-about__blog-item-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color);
  line-height: 1.4;
}

.page-about__blog-item-excerpt {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-about__blog-item-date {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 38px;
  }
  .page-about__brand-title,
  .page-about__faq-title,
  .page-about__blog-title {
    font-size: 32px;
  }
  .page-about__brand-item-title {
    font-size: 22px;
  }
  .page-about__blog-item-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  /* General mobile padding and max-width */
  .page-about__video-section,
  .page-about__title-section,
  .page-about__brand-section,
  .page-about__faq-section,
  .page-about__blog-section {
    padding: 40px 15px !important; /* Important for mobile padding */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-about__video-section {
    padding-top: 10px !important; /* Mobile specific padding-top for fixed header */
  }

  .page-about__container,
  .page-about__video-container,
  .page-about__title-container,
  .page-about__brand-container,
  .page-about__faq-container,
  .page-about__blog-container {
    padding: 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Video specific mobile styles */
  .page-about__video-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 4px;
  }

  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
    object-fit: contain;
  }

  .page-about__video-click-hint {
    font-size: 14px !important;
    padding: 8px 16px !important;
  }

  .page-about__video-cta {
    margin-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-about__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;
  }

  /* H1 & CTA buttons mobile styles */
  .page-about__main-title {
    font-size: 32px;
  }

  .page-about__title-description {
    font-size: 16px;
  }

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

  .page-about__cta-button {
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
  }

  /* Brand section mobile styles */
  .page-about__brand-title,
  .page-about__faq-title,
  .page-about__blog-title {
    font-size: 28px;
  }

  .page-about__brand-intro-text,
  .page-about__blog-intro-text {
    font-size: 15px;
  }

  .page-about__brand-content,
  .page-about__blog-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__brand-item,
  .page-about__blog-item {
    padding: 20px;
  }

  .page-about__brand-item-title {
    font-size: 20px;
  }
  .page-about__brand-item p,
  .page-about__brand-item li,
  .page-about__blog-item-excerpt {
    font-size: 15px;
  }

  .page-about__brand-item-image,
  .page-about__blog-item-image {
    height: 180px; /* Adjust height for mobile */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* FAQ specific mobile styles */
  .page-about__faq-question {
    padding: 15px 20px;
    flex-wrap: wrap;
  }

  .page-about__faq-question h3 {
    font-size: 16px;
    width: calc(100% - 40px);
  }

  .page-about__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }

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

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px 20px !important;
  }
  .page-about__faq-answer p {
    font-size: 15px;
  }
}

/* Ensure all images are responsive */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure all video elements are responsive */
.page-about video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Primary color for text on light backgrounds or as accents */
.page-about h1, .page-about h2, .page-about h3 {
  color: var(--secondary-color); /* Gold for main headings */
}

/* Overrides for specific elements for better contrast on varying backgrounds */
.page-about__faq-question h3, .page-about__faq-toggle {
  color: var(--primary-color);
}
.page-about__faq-answer {
  color: var(--text-dark);
}

/* Ensure contrast for links */
.page-about a {
  color: var(--secondary-color);
  text-decoration: underline;
}
.page-about a:hover {
  color: #e6b800;
}

/* Custom property for RGB primary color for rgba usage */
:root {
  --primary-color-rgb: 0, 51, 102;
}