/* style/about-us.css */
:root {
  --jl3-primary-color: #F2C14E;
  --jl3-secondary-color: #FFD36B;
  --jl3-card-bg: #111111;
  --jl3-background: #0A0A0A;
  --jl3-text-main: #FFF6D6;
  --jl3-border-color: #3A2A12;
  --jl3-glow-color: #FFD36B;
  --jl3-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-about-us {
  color: var(--jl3-text-main); /* Ensure text is light on dark body background */
  background-color: var(--jl3-background);
}

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

/* Hero Section */
.page-about-us__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
  box-sizing: border-box;
  min-height: 500px; /* Ensure hero section has a minimum height */
}

.page-about-us__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-about-us__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 60px 20px;
  box-sizing: border-box;
}

.page-about-us__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--jl3-secondary-color);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-about-us__hero-description {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--jl3-text-main);
  margin-bottom: 30px;
}

/* Buttons */
.page-about-us__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: var(--jl3-button-gradient);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.page-about-us__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

.page-about-us__btn-primary--large {
  padding: 18px 40px;
  font-size: 1.2rem;
}

/* General Section Styling */
.page-about-us__our-story-section,
.page-about-us__features-section,
.page-about-us__responsible-gaming-section,
.page-about-us__cta-section {
  padding: 80px 0;
  box-sizing: border-box;
}

.page-about-us__dark-section {
  background-color: var(--jl3-card-bg);
  color: var(--jl3-text-main);
}

.page-about-us__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--jl3-secondary-color);
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.page-about-us__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--jl3-button-gradient);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-about-us__sub-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--jl3-primary-color);
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-about-us__paragraph {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 15px;
  color: var(--jl3-text-main);
}

.page-about-us__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.page-about-us__content-wrapper .page-about-us__text-block {
  flex: 1;
}

.page-about-us__image-content {
  flex: 0 0 600px;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--jl3-border-color);
}

.page-about-us__image-content--left {
  order: -1;
}

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

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

.page-about-us__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-about-us__card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--jl3-secondary-color);
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-about-us__card-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--jl3-text-main);
}

.page-about-us__image-full-width {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--jl3-border-color);
}

.page-about-us__cta-section {
  text-align: center;
  background-color: var(--jl3-card-bg);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.page-about-us__cta-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  filter: brightness(0.3);
}

.page-about-us__cta-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-about-us__cta-text-block {
  margin-top: 40px;
  margin-bottom: 40px;
  text-align: left;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about-us__content-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .page-about-us__image-content {
    max-width: 100%;
    flex: none;
    margin-bottom: 30px;
  }

  .page-about-us__image-content--left {
    order: 0;
  }

  .page-about-us__cta-text-block {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-about-us__hero-section {
    min-height: 400px;
    padding-top: 10px !important;
  }

  .page-about-us__hero-content {
    padding: 40px 15px;
  }

  .page-about-us__main-title {
    font-size: 2.2rem;
  }

  .page-about-us__hero-description {
    font-size: 1rem;
  }

  .page-about-us__our-story-section,
  .page-about-us__features-section,
  .page-about-us__responsible-gaming-section,
  .page-about-us__cta-section {
    padding: 60px 0;
  }

  .page-about-us__section-title {
    font-size: 1.8rem;
    margin-bottom: 40px;
  }

  .page-about-us__sub-title {
    font-size: 1.3rem;
  }

  .page-about-us__paragraph,
  .page-about-us__card-description {
    font-size: 0.9rem;
  }

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

  .page-about-us__feature-card {
    padding: 25px;
  }

  .page-about-us__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about-us__btn-primary--large {
    padding: 15px 30px;
  }

  /* Mobile image responsiveness */
  .page-about-us img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-about-us__section,
  .page-about-us__card,
  .page-about-us__container,
  .page-about-us__hero-section,
  .page-about-us__our-story-section,
  .page-about-us__features-section,
  .page-about-us__responsible-gaming-section,
  .page-about-us__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-about-us__main-title {
    font-size: 1.8rem;
  }

  .page-about-us__hero-description {
    font-size: 0.9rem;
  }

  .page-about-us__btn-primary {
    font-size: 1rem;
    padding: 12px 20px;
  }

  .page-about-us__section-title {
    font-size: 1.5rem;
  }

  .page-about-us__sub-title {
    font-size: 1.2rem;
  }
}