/* style/about.css */

/* Custom properties for colors */
:root {
  --primary-color: #001F3F; /* Deep Navy Blue */
  --secondary-color: #FFD700; /* Gold */
  --text-light: #ffffff; /* Light text for dark backgrounds */
  --text-dark: #333333; /* Dark text for light backgrounds */
  --bg-dark: #0a0a0a; /* Body background from shared.css */
  --bg-dark-card: #1a1a1a; /* Slightly lighter dark for cards on dark background */
  --bg-light: #f1f3f5; /* Light background for sections */
  --bg-white: #ffffff; /* White background for elements */
  --border-color: #e0e0e0;
}

/* Base styles for the page content */
.page-about {
  color: var(--text-light); /* Default text color for the main content area, assuming dark body background */
  background-color: var(--bg-dark); /* Ensure main content background is consistent with body */
}

/* Fixed navigation bar spacing */
.page-about__hero-section {
  padding-top: 180px; /* Desktop: Adjust based on actual fixed header height */
}

/* HERO Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--primary-color), #000000); /* Dark gradient for hero */
  color: var(--text-light);
}

.page-about__hero-container {
  position: relative;
  width: 100%;
  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-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%;
  padding: 0 20px;
}

.page-about__main-title {
  font-size: 3.2em;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--secondary-color); /* Gold title */
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.15em;
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-about__cta-button:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

.page-about__cta-button--secondary:hover {
  background: #00152a;
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

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

.page-about__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color); /* Default dark color for light backgrounds */
}

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

.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__dark-bg-card {
  background-color: var(--bg-dark-card);
  color: var(--text-light);
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
  padding: 80px 0;
}

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

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

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

.page-about__card-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 5px;
}

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

.page-about__card-text {
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-dark);
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
  padding: 80px 0;
}

.page-about__why-choose-us-section .page-about__section-title {
  color: var(--secondary-color);
}

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

.page-about__feature-item {
  background: var(--bg-dark-card);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 30px;
  text-align: center;
  color: var(--text-light);
}

.page-about__feature-icon {
  max-width: 120px; /* Increased size from small icons */
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 5px;
}

.page-about__feature-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color); /* Gold for titles */
}

.page-about__feature-description {
  font-size: 0.95em;
  line-height: 1.6;
}

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

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  padding: 80px 0;
}

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

.page-about__text-block {
  flex: 1;
  line-height: 1.7;
  font-size: 1em;
  color: var(--text-dark);
}

.page-about__text-block p {
  margin-bottom: 15px;
}

.page-about__image-block {
  flex: 1;
  text-align: center;
}

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

/* History & Team Section */
.page-about__history-team-section {
  padding: 80px 0;
}

.page-about__history-team-section .page-about__section-title {
  color: var(--secondary-color);
}

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

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

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

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: var(--bg-white);
  border-radius: 0 0 5px 5px;
  color: var(--text-dark);
}

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

.page-about__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-about__faq-question:active {
  background: #eeeeee;
}

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

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

.page-about__faq-answer p a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-about__faq-answer p a:hover {
  color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 2.8em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__card-title {
    font-size: 1.5em;
  }
  .page-about__feature-title {
    font-size: 1.4em;
  }
  .page-about__content-flex {
    flex-direction: column;
  }
  .page-about__image-block {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: 160px !important; /* Mobile: Adjust based on fixed header height */
    padding-bottom: 40px;
  }
  .page-about__hero-content {
    padding: 0 15px;
  }
  .page-about__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-about__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-about__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-about__container {
    padding: 30px 15px;
  }
  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-about__content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-about__card {
    padding: 25px;
  }
  .page-about__card-title {
    font-size: 1.4em;
  }
  .page-about__feature-item {
    padding: 25px;
  }
  .page-about__feature-icon {
    max-width: 100px;
  }
  .page-about__feature-title {
    font-size: 1.3em;
  }
  .page-about__text-block {
    font-size: 0.95em;
  }
  .page-about__image-block-img {
    border-radius: 4px;
  }
  .page-about__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-about__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-about__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-about__faq-answer {
    padding: 0 15px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }

  /* Ensure all images are responsive and do not overflow */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-about__hero-image,
  .page-about__card,
  .page-about__feature-item,
  .page-about__image-block,
  .page-about__container,
  .page-about__mission-vision-section,
  .page-about__why-choose-us-section,
  .page-about__responsible-gaming-section,
  .page-about__history-team-section,
  .page-about__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}