/* style/about.css */

/* Root variables for brand colors */
:root {
  --primary-color: #0A2463; /* Dark blue */
  --secondary-color: #FFD700; /* Gold */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --bg-dark-card: rgba(10, 36, 99, 0.9); /* Slightly transparent dark blue for cards on dark bg */
  --border-light: #e0e0e0;
  --bg-grey: #f1f3f5; /* For sections on body background */
}

/* Page content container - Ensures proper top spacing for fixed header */
.page-about {
  padding-top: 120px; /* Desktop: Adjust based on shared header height */
  background-color: var(--bg-grey); /* Default background for the main content area */
  color: var(--text-dark); /* Default text color for light backgrounds */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-about__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__light-bg {
  background-color: var(--bg-light);
  color: var(--text-dark);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__main-heading {
  font-size: 38px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-light); /* On dark background */
  line-height: 1.2;
}

.page-about__secondary-heading {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 25px;
  color: var(--text-dark); /* Default for light background */
  line-height: 1.3;
}

.page-about__dark-bg .page-about__secondary-heading {
    color: var(--text-light); /* Override for dark background sections */
}


.page-about__highlight {
  color: var(--secondary-color); /* Gold highlight */
}

.page-about__description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 25px auto;
  line-height: 1.7;
}

.page-about__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-about__text-block a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-about__text-block a:hover {
  text-decoration: underline;
}

.page-about__intro-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 30px auto;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* CTA Buttons */
.page-about__cta-button {
  display: inline-block;
  padding: 15px 35px;
  background: linear-gradient(135deg, var(--secondary-color), #FFA500); /* Gold gradient */
  color: #0A2463; /* Dark blue text for contrast */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  text-align: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-about__cta-button:hover {
  background: linear-gradient(135deg, #FFA500, #FFD700);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-about__cta-small {
  padding: 10px 20px;
  font-size: 15px;
  margin-top: 15px;
}

/* Sections */
.page-about__intro-section,
.page-about__platform-overview-section,
.page-about__game-experience-section,
.page-about__promotions-section,
.page-about__faq-section,
.page-about__news-section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-about__intro-section .page-about__container {
  text-align: center;
}

.page-about__platform-overview-section {
  background-color: var(--bg-grey);
}
.page-about__platform-overview-section .page-about__container {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-about__game-experience-section {
  background-color: var(--primary-color); /* Dark section */
}
.page-about__game-experience-section .page-about__container {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-about__promotions-section {
  background-color: var(--bg-grey);
}
.page-about__promotions-section .page-about__container {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-about__faq-section {
  background-color: var(--primary-color); /* Dark section */
}
.page-about__faq-section .page-about__container {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-about__news-section {
  background-color: var(--bg-grey);
}
.page-about__news-section .page-about__container {
    padding-top: 60px;
    padding-bottom: 60px;
}


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

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

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

.page-about__feature-card img {
  width: 100px; /* Increased size for icons */
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.1)); /* Allowed filter for shadow, not color change */
}

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

.page-about__feature-card p {
  font-size: 15px;
  line-height: 1.6;
}

/* Game Category Grid */
.page-about__game-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-about__game-category-card {
  background: var(--bg-dark-card); /* Slightly transparent dark blue */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-about__game-category-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__game-category-card h3 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-about__game-category-card h3 a.page-about__game-link {
    color: var(--text-light);
    text-decoration: none;
}

.page-about__game-category-card h3 a.page-about__game-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-about__game-category-card p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Promotions Grid */
.page-about__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

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

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

.page-about__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.page-about__promo-card h3 a.page-about__promo-link {
    color: var(--primary-color);
    text-decoration: none;
}

.page-about__promo-card h3 a.page-about__promo-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-about__promo-card p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
}

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.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 15px;
  opacity: 0;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* Sufficiently large value */
  padding: 20px 15px !important;
  opacity: 1;
  background: var(--bg-dark-card); /* Darker background for answer on dark section */
  border-radius: 0 0 5px 5px;
  color: var(--text-light);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--primary-color); /* Dark background for question */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-light); /* Light text for question */
}

.page-about__faq-question:hover {
  background: #0D3080; /* Slightly lighter dark blue on hover */
  border-color: rgba(255, 255, 255, 0.3);
}

.page-about__faq-question:active {
  background: #081C4F; /* Even darker on active */
}

.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Allows click on entire question div */
  color: inherit; /* Inherit color from parent */
}

.page-about__faq-question h3 a {
    color: inherit; /* Ensure link text color is light */
    text-decoration: none;
}
.page-about__faq-question h3 a:hover {
    text-decoration: underline;
}

.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color); /* Gold for toggle icon */
  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(--text-light); /* White when active */
  transform: rotate(45deg); /* Rotate plus to become cross */
}

/* News Section */
.page-about__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-about__news-card {
  background: var(--bg-light);
  border-radius: 10px;
  padding: 20px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
}

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

.page-about__news-image {
  width: 100%;
  height: 180px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-about__news-card h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
  flex-grow: 1; /* Allow title to take available space */
}

.page-about__news-card h3 a.page-about__news-link {
    color: var(--primary-color);
    text-decoration: none;
}

.page-about__news-card h3 a.page-about__news-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-about__news-card p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #555555;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-heading {
    font-size: 32px;
  }
  .page-about__secondary-heading {
    font-size: 28px;
  }
  .page-about__feature-card h3,
  .page-about__game-category-card h3,
  .page-about__promo-card h3,
  .page-about__news-card h3 {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-about {
    padding-top: 100px !important; /* Mobile: Adjust based on shared header height */
    font-size: 16px; /* Increase base font size for readability */
    line-height: 1.6;
  }
}