/* style/about.css */

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

.page-about {
  font-family: Arial, sans-serif;
  color: var(--text-main); /* Default text color for the page */
  background-color: var(--background-dark); /* Default background color for the page */
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, header offset handled by body */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  position: relative;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Pull content up over image a bit for visual flow */
  background-color: rgba(17, 39, 27, 0.85); /* Card BG with transparency */
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
}

.page-about__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 20px;
  font-size: clamp(2em, 4vw, 3.5em);
}

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

.page-about__cta-button {
  display: inline-block;
  background: var(--button-gradient);
  color: var(--text-main);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-about__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

/* General Section Styling */
.page-about__intro-section,
.page-about__values-section,
.page-about__offerings-section,
.page-about__security-section,
.page-about__responsible-gaming-section,
.page-about__why-choose-us-section,
.page-about__faq-section {
  padding: 80px 0;
  background-color: var(--background-dark);
}

.page-about__section-heading {
  text-align: center;
  color: var(--text-main);
  font-size: clamp(1.8em, 3vw, 2.8em);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.page-about__section-heading::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.page-about__sub-description {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1em;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__content-wrapper--reverse {
  flex-direction: row-reverse;
}

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

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

.page-about__image-block {
  flex: 1;
  min-width: 200px; /* Ensure minimum size */
}

.page-about__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.page-about__text-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: 20px;
  display: inline-block;
}

.page-about__text-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

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

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

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

.page-about__value-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px rgba(var(--primary-color), 0.5)); /* subtle glow */
}

.page-about__value-title {
  font-size: 1.4em;
  color: var(--text-main);
  margin-bottom: 15px;
}

.page-about__value-text {
  font-size: 0.95em;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.page-about__offering-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-about__offering-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-about__offering-card > div {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-about__offering-title {
  font-size: 1.3em;
  color: var(--text-main);
  margin-bottom: 10px;
}

.page-about__offering-text {
  font-size: 0.95em;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-about__offering-link {
  display: inline-block;
  background: var(--primary-color);
  color: var(--text-main);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-about__offering-link:hover {
  background-color: var(--secondary-color);
}

/* Why Choose Us Section */
.page-about__advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

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

.page-about__advantage-card:hover {
  transform: translateY(-5px);
}

.page-about__advantage-title {
  font-size: 1.3em;
  color: var(--text-main);
  margin-bottom: 10px;
}

.page-about__advantage-text {
  font-size: 0.95em;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.page-about__cta-button--large {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-about__faq-item[open] {
  background-color: var(--deep-green);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  color: var(--text-main);
  font-weight: bold;
  cursor: pointer;
  list-style: none; /* Remove default marker */
}

.page-about__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Webkit browsers */
}

.page-about__faq-qtext {
  flex-grow: 1;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-content {
    margin-top: -100px;
    padding: 30px;
  }

  .page-about__content-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .page-about__content-wrapper--reverse {
    flex-direction: column;
  }

  .page-about__image-block {
    order: -1; /* Image appears above text on smaller screens */
    margin-bottom: 30px;
  }

  .page-about__text-link {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-bottom: 40px;
  }

  .page-about__hero-content {
    margin-top: -60px;
    padding: 20px;
  }

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

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

  .page-about__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-about__intro-section,
  .page-about__values-section,
  .page-about__offerings-section,
  .page-about__security-section,
  .page-about__responsible-gaming-section,
  .page-about__why-choose-us-section,
  .page-about__faq-section {
    padding: 50px 0;
  }

  .page-about__section-heading {
    font-size: clamp(1.6em, 5vw, 2.2em);
  }

  .page-about__sub-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  /* Mobile image responsiveness */
  .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__hero-content,
  .page-about__content-wrapper,
  .page-about__values-grid,
  .page-about__offerings-grid,
  .page-about__advantages-grid,
  .page-about__faq-list,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent content overflow */
  }
  
  .page-about__video-section {
    padding-top: 10px !important;
  }

  /* Mobile button responsiveness */
  .page-about__cta-button,
  .page-about__offering-link,
  .page-about__text-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  
  .page-about__cta-bottom .page-about__cta-button--large {
    width: auto !important; /* Allow it to shrink if needed */
    max-width: 100% !important;
  }

  .page-about__offering-link {
    align-self: center !important;
  }
}

@media (max-width: 480px) {
  .page-about__hero-content {
    margin-top: -40px;
    padding: 15px;
  }

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

  .page-about__section-heading {
    font-size: clamp(1.4em, 6vw, 2em);
  }

  .page-about__value-title,
  .page-about__offering-title,
  .page-about__advantage-title {
    font-size: 1.2em;
  }

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