/* style/about.css */

/* --- General Page Styles --- */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--dark-bg, #0d0d0d); /* Inherit from shared or use fallback dark */
}

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

.page-about__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-about__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #017439;
  border-radius: 2px;
}

.page-about__sub-title {
  font-size: 1.8em;
  color: #ffffff;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-about__dark-section {
  background-color: #0d0d0d; /* Ensure a consistent dark background */
  color: #ffffff;
  padding: 80px 0;
}

.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 80px 0;
}

.page-about__light-bg .page-about__section-title,
.page-about__light-bg .page-about__sub-title,
.page-about__light-bg .page-about__card-title {
  color: #333333;
}

.page-about__light-bg .page-about__text-block,
.page-about__light-bg .page-about__card-text,
.page-about__light-bg .page-about__list-item {
  color: #555555;
}

/* --- Buttons --- */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background-color: #C30808; /* Registration button color */
  color: #FFFF00; /* Registration font color */
  border: 2px solid #C30808;
}

.page-about__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-about__btn-secondary {
  background-color: transparent;
  color: #017439; /* Brand primary color for text */
  border: 2px solid #017439;
}

.page-about__secondary-light-bg {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-about__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

.page-about__hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* --- Hero Section --- */
.page-about__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  box-sizing: border-box;
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-about__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2;
}

.page-about__hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  max-width: 900px;
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Grid Layouts --- */
.page-about__grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.page-about__grid-three-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* --- Card Styles --- */
.page-about__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark sections */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__light-bg .page-about__card {
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

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

.page-about__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #ffffff; /* Default for dark sections */
}

.page-about__light-bg .page-about__card-title {
  color: #333333;
}

.page-about__card-title a {
  color: inherit;
  text-decoration: none;
}

.page-about__card-title a:hover {
  text-decoration: underline;
  color: #017439;
}

.page-about__card-text {
  font-size: 1em;
  color: #f0f0f0; /* Default for dark sections */
}

.page-about__light-bg .page-about__card-text {
  color: #555555;
}

/* --- Mission & Vision Section --- */
.page-about__mission-card,
.page-about__vision-card {
  text-align: left;
}
.page-about__mission-card .page-about__card-image,
.page-about__vision-card .page-about__card-image {
  max-height: 250px;
  width: 100%;
}


/* --- History Section --- */
.page-about__history-content {
  text-align: center;
}

.page-about__main-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.page-about__light-bg .page-about__main-image {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* --- Values Section --- */
.page-about__value-card {
  text-align: center;
  padding: 25px;
}

/* --- Products & Services Section --- */
.page-about__products-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 40px;
}
.page-about__products-grid .page-about__card {
  text-align: left;
}
.page-about__products-grid .page-about__card-image {
  max-height: 200px;
  width: 100%;
}

/* --- Responsibility Section --- */
.page-about__responsibility-section .page-about__grid-two-columns {
  align-items: center;
}

.page-about__image-wrapper {
  text-align: center;
}

.page-about__image-wrapper .page-about__main-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.page-about__responsible-gaming-info {
  margin-top: 50px;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-about__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-about__list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #017439;
  font-weight: bold;
}

.page-about__list-item a {
  color: #017439;
  text-decoration: underline;
}
.page-about__list-item a:hover {
  color: #02944b;
}

/* --- CTA Section --- */
.page-about__cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

.page-about__cta-content {
  max-width: 800px;
}

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

.page-about__cta-buttons .page-about__btn-primary {
  background-color: #C30808;
  color: #FFFF00;
  border-color: #C30808;
}
.page-about__cta-buttons .page-about__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-about__cta-buttons .page-about__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border-color: #ffffff;
}
.page-about__cta-buttons .page-about__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}


/* --- FAQ Section --- */
.page-about__faq-section {
  padding-bottom: 80px;
}

.page-about__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__faq-item[open] {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker */
}

.page-about__faq-question::-webkit-details-marker {
  display: none; /* Remove default marker for webkit browsers */
}

.page-about__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-about__faq-toggle {
  font-size: 1.5em;
  color: #017439;
  margin-left: 15px;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  content: '−';
}

.page-about__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #f0f0f0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__grid-three-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}