/* style/about.css */
:root {
  --primary-color: #FFD700;
  --secondary-color: #8B0000;
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --background-dark: #121212;
  --background-card-dark: rgba(255, 255, 255, 0.08);
  --border-color-dark: rgba(255, 255, 255, 0.15);
}

.page-about {
  color: var(--text-color-light); /* Light text on dark body background */
  background-color: var(--background-dark); /* Inherited from shared.css body */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  padding-top: 120px; /* Adjust for fixed header */
  background: linear-gradient(135deg, rgba(255,215,0,0.1) 0%, rgba(139,0,0,0.1) 100%), url('[GALLERY:bg:12bet_mobi_hero_background,abstract_pattern,luxury_gaming]') center center/cover no-repeat;
  min-height: 450px;
  text-align: center;
}

.page-about__hero-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-about__main-title {
  font-size: 3.2em;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.page-about__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
  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 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-about__cta-button--primary {
  background: var(--primary-color);
  color: var(--text-color-dark);
  border: 2px solid var(--primary-color);
}

.page-about__cta-button--primary:hover {
  background: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__cta-button--secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-about__cta-button--secondary:hover {
  background: var(--primary-color);
  color: var(--text-color-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__cta-buttons--center {
  justify-content: center;
  margin-top: 30px;
}

.page-about__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.page-about__section-description {
  font-size: 1.1em;
  color: #ccc;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.page-about__introduction-section,
.page-about__history-section,
.page-about__advantages-section,
.page-about__commitment-section,
.page-about__faq-section,
.page-about__blog-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-about__introduction-content,
.page-about__history-content,
.page-about__commitment-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  font-size: 1.05em;
  color: #e0e0e0;
}

.page-about__introduction-content p,
.page-about__history-content p,
.page-about__commitment-content p {
  margin-bottom: 15px;
  line-height: 1.7;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  margin: 20px 0;
}

.page-about__image--left {
  float: left;
  margin-right: 30px;
  width: 40%; /* Adjust as needed */
  object-fit: cover;
}

.page-about__image--right {
  float: right;
  margin-left: 30px;
  width: 40%; /* Adjust as needed */
  object-fit: cover;
}

.page-about__image--center {
  margin-left: auto;
  margin-right: auto;
  width: 70%; /* Adjust as needed */
  object-fit: cover;
}

.page-about__introduction-section .page-about__introduction-content::after,
.page-about__history-section .page-about__history-content::after {
  content: '';
  display: table;
  clear: both;
}

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

.page-about__advantage-item {
  background: var(--background-card-dark);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color-dark);
}

.page-about__advantage-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-about__advantage-item h3 {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__advantage-item p {
  color: #ccc;
  font-size: 0.95em;
  line-height: 1.6;
}

/* FAQ Section */
.page-about__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--border-color-dark);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--background-card-dark);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none;
}

.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #ccc;
  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: 28px;
  height: 28px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg);
}

.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 20px;
  opacity: 0;
  color: #e0e0e0;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid var(--border-color-dark);
  border-radius: 0 0 5px 5px;
}

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

.page-about__blog-item {
  background: var(--background-card-dark);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color-dark);
}

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

.page-about__blog-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

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

.page-about__blog-content {
  padding: 20px;
}

.page-about__blog-item-title {
  font-size: 1.3em;
  color: var(--primary-color);
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-about__blog-item-excerpt {
  font-size: 0.95em;
  color: #ccc;
  margin-bottom: 15px;
  line-height: 1.5;
}

.page-about__blog-item-date {
  font-size: 0.85em;
  color: #999;
  display: block;
}

/* General image responsive style */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 2.8em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__image--left,
  .page-about__image--right {
    width: 100%;
    float: none;
    margin: 20px auto;
  }
  .page-about__introduction-content,
  .page-about__history-content,
  .page-about__commitment-content {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 15px;
    line-height: 1.6;
  }
  .page-about__hero-section {
    padding-top: 100px !important; /* Mobile fixed header adjustment */
    padding-bottom: 60px;
  }
  .page-about__hero-container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-about__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-about__introduction-section,
  .page-about__history-section,
  .page-about__advantages-section,
  .page-about__commitment-section,
  .page-about__faq-section,
  .page-about__blog-section {
    padding: 60px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-about__introduction-content,
  .page-about__history-content,
  .page-about__commitment-content {
    font-size: 1em;
  }
  .page-about__image {
    margin: 20px auto;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    float: none !important;
  }
  .page-about__advantage-item {
    padding: 25px;
  }
  .page-about__advantage-item h3 {
    font-size: 1.3em;
  }
  .page-about__faq-question {
    padding: 15px;
  }
  .page-about__faq-question h3 {
    font-size: 1em;
  }
  .page-about__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }
  .page-about__blog-list {
    grid-template-columns: 1fr;
  }
  .page-about__blog-image {
    height: 180px;
  }
  .page-about__blog-item-title {
    font-size: 1.1em;
  }
  .page-about__blog-item-excerpt {
    font-size: 0.9em;
  }
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-about__cta-buttons, .page-about__button-group, .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    flex-wrap: wrap !important;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 1.8em;
  }
  .page-about__section-title {
    font-size: 1.5em;
  }
  .page-about__cta-button {
    padding: 10px 20px;
    font-size: 0.95em;
  }
  .page-about__advantage-item {
    padding: 20px;
  }
  .page-about__advantage-icon {
    width: 80px;
    height: 80px;
  }
  .page-about__advantage-item h3 {
    font-size: 1.2em;
  }
}