/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--background);
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  background: var(--deep-green);
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
  box-sizing: border-box;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-about__hero-content {
  max-width: 900px;
  color: var(--text-main);
  z-index: 1;
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--glow);
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-about__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-about__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

.page-about__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1);
  transform: translateY(-3px);
}

/* General Section Styles */
.page-about__section {
  padding: 80px 20px;
  text-align: center;
}

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

.page-about__light-bg {
  background-color: var(--card-b-g);
  color: var(--text-main);
}

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

.page-about__heading {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 40px;
  color: var(--glow);
  text-shadow: 0 0 5px rgba(87, 227, 141, 0.3);
}

.page-about__sub-heading {
  font-size: 1.5em;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 15px;
  color: var(--text-main);
}

.page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

/* Mission & Values Section */
.page-about__mission-vision .page-about__heading {
  color: var(--glow);
}

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

.page-about__value-card {
  background-color: var(--deep-green);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid var(--border);
}

.page-about__value-icon {
  width: 200px;
  height: auto;
  margin-bottom: 20px;
  max-width: 100%;
  display: block;
  border-radius: 10px;
}

.page-about__value-card .page-about__sub-heading {
  color: var(--glow);
}

.page-about__value-card .page-about__text-block {
  color: var(--text-secondary);
  font-size: 0.95em;
}

/* History Section */
.page-about__history-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
}

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

/* Advantages Section */
.page-about__advantages-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-about__list-item {
  background-color: var(--deep-green);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-left: 5px solid var(--glow);
}

.page-about__list-item .page-about__sub-heading {
  color: var(--glow);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-about__list-item .page-about__text-block {
  color: var(--text-secondary);
  font-size: 1em;
  margin-bottom: 0;
}

/* Responsible Gambling Section */
.page-about__responsible-image {
  width: 600px;
  height: auto;
  max-width: 100%;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  margin-top: 30px;
  margin-bottom: 30px;
  display: block;
}

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

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

/* Team Section */
.page-about__team-image {
  width: 800px;
  height: auto;
  max-width: 100%;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  margin-top: 30px;
  margin-bottom: 30px;
  display: block;
}

/* Contact Section */
.page-about__contact-info {
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-about__contact-link {
  color: var(--glow);
  text-decoration: none;
  font-weight: bold;
}

.page-about__contact-link:hover {
  text-decoration: underline;
}

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

.page-about__faq-item {
  background-color: var(--deep-green);
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--text-main);
  background-color: var(--card-b-g);
  border-bottom: 1px solid var(--divider);
  list-style: none;
}

.page-about__faq-question::-webkit-details-marker {
  display: none;
}

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

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow);
}

.page-about__faq-item[open] .page-about__faq-question {
  border-bottom-color: transparent;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  content: '−';
}

.page-about__faq-answer {
  padding: 20px 25px;
  background-color: var(--deep-green);
  color: var(--text-secondary);
  font-size: 1em;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-about__history-content {
    flex-direction: row;
    text-align: left;
  }

  .page-about__history-image {
    order: 2;
  }

  .page-about__history-content .page-about__text-block {
    flex: 1;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-about__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-about__description {
    font-size: 1em;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95em;
  }

  .page-about__section {
    padding: 50px 15px;
  }

  .page-about__heading {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-about__sub-heading {
    font-size: 1.3em;
  }

  .page-about__text-block {
    font-size: 1em;
  }

  .page-about__values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__value-card {
    padding: 20px;
  }

  .page-about__value-icon {
    width: 150px;
    height: auto;
  }

  .page-about__history-content {
    flex-direction: column;
  }

  .page-about__history-image,
  .page-about__responsible-image,
  .page-about__team-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block !important;
    margin: 20px auto;
  }

  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-image-wrapper,
  .page-about__history-content,
  .page-about__values-grid,
  .page-about__advantages-list,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }

  .page-about__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-about__faq-answer {
    padding: 15px 20px;
  }
}