/* style/about.css */

:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --background-color: #0A0A0A;
  --card-bg-color: #111111;
  --text-main-color: #FFF6D6;
  --border-color: #3A2A12;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --glow-color: #FFD36B;
}

.page-about {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

.page-about__section {
  padding: 60px 0;
  text-align: center;
}

.page-about__dark-section {
  background-color: var(--card-bg-color);
}

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

.page-about__section-title {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-about__section-description {
  font-size: 18px;
  color: var(--text-main-color);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 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(--background-color);
}

.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-wrapper {
  width: 100%;
  margin-bottom: 30px;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(242, 193, 78, 0.5);
}

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

.page-about__hero-content h1 {
  font-size: clamp(28px, 4vw, 52px);
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.5px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__hero-content p {
  font-size: 18px;
  color: var(--text-main-color);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__cta-button:hover {
  opacity: 0.9;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 211, 107, 0.6);
}

/* Intro Section */
.page-about__intro-section {
  background-color: var(--background-color);
  padding: 80px 0;
}

.page-about__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-about__intro-text {
  flex: 2;
  font-size: 17px;
  color: var(--text-main-color);
}

.page-about__intro-text p {
  margin-bottom: 15px;
}

.page-about__intro-text .page-about__inline-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-about__intro-text .page-about__inline-link:hover {
  text-decoration: underline;
}

.page-about__intro-image-wrapper {
  flex: 1;
  min-width: 250px;
}

.page-about__intro-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

/* Quick Links Section */
.page-about__quick-links-section {
  padding: 80px 0;
}

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

.page-about__quick-link-card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-decoration: none;
  color: var(--text-main-color);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__quick-link-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.3);
}

.page-about__link-icon {
  font-size: 48px;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

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

.page-about__link-text {
  font-size: 16px;
  color: var(--text-main-color);
}

/* Games Section */
.page-about__games-section {
  background-color: var(--background-color);
  padding: 80px 0;
}

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

.page-about__game-card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-about__game-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

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

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

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

.page-about__game-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  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;
  text-align: center;
}

.page-about__game-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Promotions Section */
.page-about__promotions-section {
  padding: 80px 0;
}

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

.page-about__promo-card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-about__promo-card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary-color);
}

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

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

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

.page-about__promo-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  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;
  text-align: center;
}

.page-about__promo-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Security Section */
.page-about__security-section {
  background-color: var(--background-color);
  padding: 80px 0;
}

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

.page-about__security-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

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

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

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

.page-about__contact-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  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;
  text-align: center;
}

.page-about__contact-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

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

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

details.page-about__faq-item summary.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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, 255, 255, 0.05);
}

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

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

details.page-about__faq-item .page-about__faq-answer {
  padding: 0 25px 25px;
  background: var(--card-bg-color);
  border-radius: 0 0 12px 12px;
  text-align: left;
}

details.page-about__faq-item .page-about__faq-answer p {
  font-size: 16px;
  color: var(--text-main-color);
}

/* Blog Section */
.page-about__blog-section {
  background-color: var(--background-color);
  padding: 80px 0;
}

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

.page-about__blog-card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-about__blog-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.page-about__blog-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

.page-about__blog-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-about__blog-title a:hover {
  text-decoration: underline;
}

.page-about__blog-date {
  font-size: 14px;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

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

.page-about__blog-readmore {
  display: inline-block;
  padding: 8px 18px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-about__blog-readmore:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-about__view-all-button-wrapper {
  margin-top: 50px;
  text-align: center;
}

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

.page-about__view-all-button:hover {
  opacity: 0.9;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 211, 107, 0.6);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__section-title {
    font-size: 32px;
  }
  .page-about__section-description {
    font-size: 17px;
  }
  .page-about__hero-content h1 {
    font-size: clamp(26px, 5vw, 48px);
  }
  .page-about__intro-text {
    font-size: 16px;
  }
  .page-about__content-grid {
    flex-direction: column;
    text-align: center;
  }
  .page-about__intro-image-wrapper {
    order: -1;
    margin-bottom: 30px;
  }
  .page-about__quick-links-grid,
  .page-about__games-grid,
  .page-about__promotions-grid,
  .page-about__security-grid,
  .page-about__blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-about__faq-qtext {
    font-size: 16px;
  }
  .page-about__faq-toggle {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .page-about__section {
    padding: 40px 0;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__section-title {
    font-size: 28px;
  }
  .page-about__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* Hero Section Mobile */
  .page-about__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-about__hero-image {
    border-radius: 4px;
  }
  .page-about__hero-content h1 {
    font-size: clamp(24px, 6vw, 40px);
  }
  .page-about__hero-content p {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .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;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* General Image & Button Mobile */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__quick-links-section,
  .page-about__games-section,
  .page-about__promotions-section,
  .page-about__security-section,
  .page-about__blog-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons Mobile */
  .page-about__game-button,
  .page-about__promo-button,
  .page-about__contact-button,
  .page-about__blog-readmore,
  .page-about__view-all-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;
  }
  .page-about__quick-links-grid,
  .page-about__games-grid,
  .page-about__promotions-grid,
  .page-about__security-grid,
  .page-about__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-about__faq-item summary.page-about__faq-question {
    padding: 15px;
  }
  .page-about__faq-qtext {
    font-size: 15px;
  }
  .page-about__faq-toggle {
    font-size: 20px;
  }
  details.page-about__faq-item .page-about__faq-answer {
    padding: 0 15px 15px;
  }
}