/* style/about.css */

/* Root variables for colors */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --bg-dark: #08160F;
  --card-bg: #11271B;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

/* Page-specific styling for .page-about */
.page-about {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Default text color for the page */
  background-color: var(--bg-dark); /* Background color for the main content area */
}

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  text-align: center;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width for the image wrapper */
  margin-bottom: 30px;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-about__hero-content {
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 20px;
}

.page-about__hero-description {
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: var(--btn-gradient);
  color: #ffffff;
  border: none;
}

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

.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: #ffffff;
  transform: translateY(-2px);
}

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

.page-about__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
}

.page-about__light-bg {
  background-color: #ffffff; /* Default light background for contrast */
  color: #333333; /* Dark text for light background */
}

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

.page-about__introduction-section p {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #333333; /* Dark text on light background */
}

/* Mission & Vision Section */
.page-about__mission-vision-section .page-about__section-title {
  color: var(--text-main);
}

.page-about__grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.page-about__card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  color: var(--text-secondary);
}

.page-about__card-title {
  font-size: 1.6em;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 15px;
}

.page-about__card p {
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-about__card-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: auto; /* Push image to bottom if content above is shorter */
  object-fit: cover;
  min-height: 200px; /* Ensure min size */
}

/* Values Section */
.page-about__values-section .page-about__section-title {
  color: #333333; /* Dark text on light background */
}

.page-about__values-section p {
  color: #333333; /* Dark text on light background */
}

.page-about__values-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-about__value-item {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333; /* Dark text on light background */
}

.page-about__value-title {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-about__image-full-width {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  margin-top: 30px;
  min-height: 200px; /* Ensure min size */
}

/* Security Section */
.page-about__security-section .page-about__section-title {
  color: var(--text-main);
}

.page-about__security-section p {
  color: var(--text-secondary);
}

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

.page-about__feature-item {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
}

.page-about__feature-title {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}

.page-about__btn-centered {
  margin: 0 auto;
  display: block;
  width: fit-content;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section .page-about__section-title {
  color: #333333; /* Dark text on light background */
}

.page-about__responsible-gaming-section p {
  color: #333333; /* Dark text on light background */
}

.page-about__grid-two-columns.page-about__responsive-grid {
  align-items: center;
}

.page-about__content-text {
  text-align: left;
}

.page-about__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.page-about__image-wrapper {
  text-align: center;
}

.page-about__responsive-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  min-height: 200px; /* Ensure min size */
}

/* Team Section */
.page-about__team-section .page-about__section-title {
  color: var(--text-main);
}

.page-about__team-section p {
  color: var(--text-secondary);
}

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

.page-about__team-member {
  text-align: center;
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 25px;
}

.page-about__member-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid var(--primary-color);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-about__member-name {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 5px;
}

.page-about__member-role {
  font-size: 1em;
  color: var(--text-secondary);
}

.page-about__team-description {
  margin-top: 40px;
  text-align: center;
}

/* Contact Section */
.page-about__contact-section .page-about__section-title {
  color: #333333; /* Dark text on light background */
}

.page-about__contact-section p {
  color: #333333; /* Dark text on light background */
}

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

.page-about__contact-item {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  color: #333333; /* Dark text on light background */
}

.page-about__contact-title {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

/* FAQ Section */
.page-about__faq-section .page-about__section-title {
  color: var(--text-main);
}

.page-about__faq-list {
  margin-top: 30px;
}

.page-about__faq-item {
  background-color: var(--card-bg);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-secondary);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: var(--deep-green-color);
  color: var(--text-main);
  font-size: 1.2em;
  font-weight: 600;
  border-bottom: 1px solid var(--divider-color);
}

.page-about__faq-question::-webkit-details-marker, /* Hide default marker for Chrome/Safari */
.page-about__faq-question::marker { /* Hide default marker for Firefox */
  display: none;
}

.page-about__faq-item[open] .page-about__faq-question {
  border-bottom: 1px solid var(--border-color);
}

.page-about__faq-qtext {
  flex-grow: 1;
  color: var(--text-main);
}

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  margin-left: 15px;
  color: var(--text-main);
}

.page-about__faq-answer {
  padding: 20px 25px;
  line-height: 1.6;
  font-size: 1.05em;
  color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-content {
    max-width: 768px;
  }
  .page-about__container {
    padding: 30px 15px;
  }
  .page-about__grid-two-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-about__hero-content {
    padding: 0 15px;
  }
  .page-about__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important; /* Force full width on mobile */
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-about__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
    margin-bottom: 30px;
  }
  .page-about__introduction-section p {
    font-size: 0.95em;
  }
  .page-about__values-list,
  .page-about__security-features,
  .page-about__team-grid,
  .page-about__contact-info {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-about__sub-title {
    font-size: 1.5em;
  }
  .page-about__member-photo {
    width: 120px;
    height: 120px;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  /* Responsive images */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__hero-image-wrapper,
  .page-about__image-full-width,
  .page-about__image-wrapper,
  .page-about__card-image,
  .page-about__member-photo {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-about__container,
  .page-about__hero-section,
  .page-about__introduction-section,
  .page-about__mission-vision-section,
  .page-about__values-section,
  .page-about__security-section,
  .page-about__responsible-gaming-section,
  .page-about__team-section,
  .page-about__contact-section,
  .page-about__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__hero-section {
    padding-top: 10px !important;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    padding-left: 15px !important;
    padding-right: 15px !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: 10px;
  }
}