/* style/about.css */
:root {
  --primary-color: #FFD700;
  --secondary-color: #8B0000;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #1a1a1a;
  --bg-light: #f9f9f9;
  --border-color: #e0e0e0;
}

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

.page-about__section {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.page-about__dark-bg {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-about__light-bg {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-about__text-dark {
  color: var(--text-dark);
}

.page-about__text-light {
  color: var(--text-light);
}

.page-about__text-center {
  text-align: center;
}

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

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

.page-about__section-title--dark {
  color: var(--secondary-color);
}

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

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  min-height: 600px;
}

.page-about__hero-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  border-radius: 8px;
  max-width: 900px;
  margin: 20px;
  box-sizing: border-box;
}

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

.page-about__intro-text {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--text-light);
}

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

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: var(--primary-color);
  color: var(--bg-dark);
  border: 2px solid var(--primary-color);
}

.page-about__btn-primary:hover {
  background: var(--secondary-color);
  color: var(--text-light);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-about__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--bg-dark);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-about__introduction .page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.page-about__introduction .page-about__content-grid--reverse {
  direction: rtl;
}

.page-about__introduction .page-about__content-grid--reverse > div {
  direction: ltr;
}

.page-about__introduction .page-about__text-block h3 {
  color: var(--primary-color);
  font-size: 28px;
  margin-bottom: 15px;
}

.page-about__introduction .page-about__text-block p {
  margin-bottom: 15px;
  font-size: 17px;
  color: var(--text-light);
}

.page-about__image-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px;
}

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

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

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

.page-about__list--dark li {
  color: var(--text-dark);
}

.page-about__diverse-entertainment .page-about__section-description {
  color: var(--text-dark);
}

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

.page-about__game-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  color: var(--text-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-about__game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px;
}

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

.page-about__game-description {
  font-size: 15px;
  color: var(--text-dark);
  padding: 0 15px;
  margin-bottom: 20px;
}

.page-about__btn-text {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s ease;
}

.page-about__btn-text:hover {
  color: var(--secondary-color);
}

.page-about__advantages .page-about__section-description {
  color: var(--text-light);
}

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

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

.page-about__advantage-item:hover {
  transform: translateY(-10px);
}

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

.page-about__advantage-item p {
  font-size: 16px;
  color: var(--text-light);
}

.page-about__responsible-gambling .page-about__section-description {
  color: var(--text-dark);
}

.page-about__responsible-gambling .page-about__text-block p {
  color: var(--text-dark);
  font-size: 17px;
}

.page-about__list--dark li::before {
  color: var(--secondary-color);
}

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

.page-about__vision-item {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-about__vision-item:hover {
  transform: translateY(-10px);
}

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

.page-about__vision-item p {
  font-size: 16px;
  color: var(--text-light);
}

.page-about__cta-final .page-about__section-description {
  color: var(--text-dark);
}

.page-about__final-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 32px;
  }
  .page-about__main-title {
    font-size: 40px;
  }
  .page-about__intro-text {
    font-size: 18px;
  }
  .page-about__introduction .page-about__content-grid {
    grid-template-columns: 1fr;
  }
  .page-about__introduction .page-about__content-grid--reverse {
    direction: ltr; /* Reset for mobile */
  }
  .page-about__introduction .page-about__content-grid--reverse > div {
    direction: ltr;
  }
  .page-about__introduction .page-about__image-block {
    order: -1; /* Image above text on mobile for reverse grid */
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    min-height: 500px;
  }
  .page-about__hero-content {
    padding: 30px 15px;
    margin: 15px;
  }
  .page-about__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-about__intro-text {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-about__cta-button {
    padding: 12px 25px;
    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__hero-actions, .page-about__final-actions {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-about__section {
    padding: 40px 0;
  }
  .page-about__section-title {
    font-size: 28px;
  }
  .page-about__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-about__introduction .page-about__text-block h3 {
    font-size: 24px;
  }
  .page-about__introduction .page-about__text-block p, .page-about__list li {
    font-size: 15px;
  }
  .page-about__game-card img, .page-about__image-block img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px;
  }
  .page-about__section,
  .page-about__container,
  .page-about__hero-container,
  .page-about__content-grid,
  .page-about__game-grid,
  .page-about__advantage-grid,
  .page-about__vision-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__advantage-title, .page-about__vision-title {
    font-size: 20px;
  }
  .page-about__advantage-item, .page-about__vision-item {
    padding: 25px;
  }
}

/* Ensure no CSS filter on images */
.page-about img {
  filter: none; /* Explicitly disable any filter */
}

/* Content area images CSS size lower limit */
.page-about__image-block img,
.page-about__game-card img {
  min-width: 200px;
  min-height: 200px;
  width: auto; /* Allow natural width or flex to define */
  height: auto;
}

@media (max-width: 768px) {
  .page-about__image-block img,
  .page-about__game-card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}