/* style/about.css */

/* Variables */
:root {
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;
  --button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  --card-bg: #17191F;
  --body-bg: #0D0E12;
  --text-main: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange: #D96800;
}

.page-about {
  color: var(--text-main); /* Light text for dark body background */
  background-color: var(--body-bg);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 60px; /* Ensure space above footer */
}

.page-about__section {
  padding: 60px 20px;
  margin-bottom: 0; /* Remove default margin */
}

.page-about__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 0 0 8px rgba(255, 165, 58, 0.5);
}

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

.page-about__text-block {
  font-size: 17px;
  color: var(--text-main);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
}

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

.page-about__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-about__image--centered {
  margin: 40px auto;
}

.page-about__image--margin-top {
  margin-top: 60px;
}

/* HERO Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--body-bg);
}

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

.page-about__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-about__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-about__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 0 15px rgba(255, 165, 58, 0.7);
}

.page-about__hero-description {
  font-size: 18px;
  color: var(--text-main);
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__cta-button:hover {
  background: linear-gradient(180deg, var(--deep-orange) 0%, var(--secondary-color) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

/* Intro Section */
.page-about__intro-section {
  background-color: var(--body-bg);
}

.page-about__grid-item {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.page-about__grid-item--reverse {
  flex-direction: row-reverse;
}

.page-about__grid-item:last-of-type {
  margin-bottom: 0;
}

.page-about__grid-item .page-about__image {
  flex: 1;
  max-width: 50%;
  border: 1px solid var(--border-color);
  box-shadow: 0 0 20px rgba(255, 140, 26, 0.3);
}

.page-about__content-block {
  flex: 1;
  max-width: 50%;
}

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

.page-about__list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: var(--text-main);
  font-size: 16px;
}

.page-about__list li::before {
  content: '✔';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Security Section */
.page-about__security-section {
  background-color: var(--card-bg);
}

.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__text-block,
.page-about__dark-section .page-about__sub-title,
.page-about__dark-section .page-about__feature-title,
.page-about__dark-section .page-about__feature-item p,
.page-about__dark-section .page-about__value-prop-title,
.page-about__dark-section .page-about__value-prop-card p {
  color: var(--text-main);
}

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

.page-about__feature-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 0 15px rgba(255, 140, 26, 0.2);
}

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

/* Games Section */
.page-about__games-section {
  background-color: var(--body-bg);
}

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

.page-about__game-card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 0 15px rgba(255, 140, 26, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-about__game-card p {
  color: var(--text-main);
  font-size: 16px;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-about__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: transparent;
  color: var(--primary-color);
  text-decoration: none;
  border: 2px solid var(--primary-color);
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(255, 140, 26, 0.3);
}

/* Customer Service Section */
.page-about__customer-service-section {
  background-color: var(--card-bg);
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  background-color: var(--body-bg);
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
  background-color: var(--card-bg);
}

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

.page-about__value-prop-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 0 15px rgba(255, 140, 26, 0.2);
  text-align: center;
}

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

.page-about__value-prop-card p {
  color: var(--text-main);
  font-size: 16px;
  margin-bottom: 20px;
}

.page-about__btn-link {
  color: var(--glow-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-about__cta-wrapper {
  text-align: center;
  margin-top: 60px;
}

/* FAQ Section */
.page-about__faq-section {
  background-color: var(--body-bg);
}

.page-about__faq-list {
  margin-top: 40px;
}

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 0 10px rgba(255, 140, 26, 0.1);
}

details.page-about__faq-item summary.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main);
  font-weight: bold;
}

details.page-about__faq-item summary.page-about__faq-question::-webkit-details-marker {
  display: none;
}

details.page-about__faq-item summary.page-about__faq-question:hover {
  background: rgba(255, 140, 26, 0.1);
}

.page-about__faq-qtext {
  flex: 1;
  font-size: 18px;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}

.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-about__faq-item .page-about__faq-answer {
  padding: 0 20px 20px;
  background: rgba(255, 140, 26, 0.05);
  border-radius: 0 0 5px 5px;
  color: var(--text-main);
  font-size: 16px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__grid-item {
    flex-direction: column;
    gap: 30px;
  }

  .page-about__grid-item--reverse {
    flex-direction: column;
  }

  .page-about__grid-item .page-about__image,
  .page-about__content-block {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: 10px !important; /* Body handles header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__main-title {
    font-size: clamp(24px, 6vw, 36px);
  }

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

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

  .page-about__section {
    padding: 40px 15px;
  }

  .page-about__section-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .page-about__sub-title,
  .page-about__feature-title,
  .page-about__game-title,
  .page-about__value-prop-title {
    font-size: 20px;
  }

  .page-about__text-block,
  .page-about__list li,
  .page-about__game-card p,
  .page-about__value-prop-card p {
    font-size: 15px;
  }

  .page-about__image,
  .page-about__hero-image img,
  .page-about__grid-item .page-about__image,
  .page-about__container,
  .page-about__section,
  .page-about__card,
  .page-about__game-card,
  .page-about__feature-item,
  .page-about__value-prop-card {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-about__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__btn-secondary,
  .page-about__btn-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  details.page-about__faq-item summary.page-about__faq-question {
    padding: 15px;
  }

  .page-about__faq-qtext {
    font-size: 16px;
  }

  .page-about__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }

  details.page-about__faq-item .page-about__faq-answer {
    padding: 0 15px 15px;
  }
}