/* style/about.css */

/* Custom colors from provided palette */
:root {
  --j9bet-bg-color: #08160F;
  --j9bet-card-bg: #11271B;
  --j9bet-text-main: #F2FFF6;
  --j9bet-text-secondary: #A7D9B8;
  --j9bet-border-color: #2E7A4E;
  --j9bet-glow-color: #57E38D;
  --j9bet-gold-color: #F2C14E;
  --j9bet-divider-color: #1E3A2A;
  --j9bet-deep-green: #0A4B2C;
  --j9bet-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-about {
  /* Inherit shared body padding-top for header offset */
  background-color: var(--j9bet-bg-color);
  color: var(--j9bet-text-main); /* Light text for dark background */
  font-family: 'Arial', sans-serif; /* Example font */
  line-height: 1.6;
}

/* General Section Styling */
.page-about__section {
  padding: 80px 0;
  position: relative;
  overflow: hidden; /* Ensure no overflow */
}

.page-about__section:nth-child(odd) {
  background-color: var(--j9bet-bg-color);
}

.page-about__section:nth-child(even) {
  background-color: var(--j9bet-deep-green); /* Slightly different dark background */
}

.page-about__dark-section {
  background-color: var(--j9bet-card-bg); /* Using card bg for dark sections */
  color: var(--j9bet-text-main);
}

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

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

.page-about__container--reverse {
  flex-direction: row-reverse;
}

.page-about__container--center {
  text-align: center;
  max-width: 800px;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  background-color: var(--j9bet-bg-color);
  color: var(--j9bet-text-main);
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%; /* Ensure it takes full width */
  overflow: hidden;
  margin-bottom: 40px; /* Space between image and text */
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px; /* Slightly rounded corners */
}

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

.page-about__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--j9bet-gold-color); /* Highlight with gold color */
}

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

.page-about__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Ensure long words break */
}

.page-about__btn-primary {
  background: var(--j9bet-button-gradient);
  color: var(--j9bet-text-main); /* White-ish text */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-about__btn-secondary:hover {
  background-color: var(--j9bet-glow-color);
  color: var(--j9bet-bg-color); /* Dark text on hover */
  transform: translateY(-2px);
}

.page-about__btn-inline {
  margin-top: 20px;
}

/* Titles */
.page-about__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: var(--j9bet-gold-color);
}

.page-about__section-title--left {
  text-align: left;
}

/* Text Blocks */
.page-about__text-block {
  margin-bottom: 20px;
  font-size: 1rem;
  color: var(--j9bet-text-secondary);
}

/* Image Wrapper for content sections */
.page-about__image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
  box-sizing: border-box;
}

.page-about__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-about__content-block {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
  box-sizing: border-box;
}

/* Lists */
.page-about__list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-about__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  color: var(--j9bet-text-main);
  font-size: 1rem;
}

.page-about__list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--j9bet-glow-color);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Grid Layout for Offerings */
.page-about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__card {
  background-color: var(--j9bet-card-bg);
  border: 1px solid var(--j9bet-border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--j9bet-text-main); /* Ensure light text on dark card background */
}

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

.page-about__card-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-height: 200px; /* Enforce minimum size */
  max-height: 250px; /* Limit height for uniform cards */
}

.page-about__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--j9bet-gold-color);
}

.page-about__card-text {
  font-size: 0.95rem;
  color: var(--j9bet-text-secondary);
  margin-bottom: 25px;
  flex-grow: 1; /* Allow text to grow and push button to bottom */
}

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

.page-about__faq-item {
  background-color: var(--j9bet-card-bg);
  border: 1px solid var(--j9bet-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--j9bet-text-main);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--j9bet-text-main);
  background-color: var(--j9bet-card-bg);
  transition: background-color 0.3s ease;
  list-style: none; /* For summary tag */
}

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

.page-about__faq-question:hover {
  background-color: rgba(var(--j9bet-glow-color), 0.1);
}

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

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

.page-about__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: var(--j9bet-text-secondary);
}

.page-about__faq-answer p {
  margin-top: 0;
  margin-bottom: 15px;
}

/* Contact CTA */
.page-about__contact-cta {
  padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__container--flex {
    flex-direction: column;
  }

  .page-about__image-wrapper,
  .page-about__content-block {
    max-width: 100%;
  }

  .page-about__image-wrapper {
    margin-bottom: 30px;
  }

  .page-about__container--reverse {
    flex-direction: column; /* Revert to column for smaller screens */
  }

  .page-about__section-title--left {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-about__section {
    padding: 60px 0;
  }

  .page-about__hero-section {
    padding-bottom: 40px;
  }

  .page-about__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-about__description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-about__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important; /* Force full width */
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__container {
    padding: 0 15px; /* Add side padding for mobile */
  }

  /* 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__image-wrapper,
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure content doesn't overflow */
  }

  /* Specific padding for sections to avoid overflow */
  .page-about__section,
  .page-about__hero-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-about__hero-section {
    padding-top: 10px !important; /* body already handles header offset */
  }

  .page-about__card-image {
    min-height: 150px; /* Adjust min height for mobile cards */
    max-height: 200px;
  }
  
  .page-about__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-about__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .page-about__section {
    padding: 40px 0;
  }

  .page-about__main-title {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .page-about__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
}

/* Ensure no image filters are used */
.page-about img {
  filter: none !important;
}