/* style/about.css */

/* Root variables for colors */
:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --card-bg-color: #111111;
  --background-color-dark: #0A0A0A;
  --text-main-color: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --header-offset: 122px; /* Default offset, overridden by shared if present */
}

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

.page-about__section-padding {
  padding: 60px 0;
}

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

.page-about__section-title {
  font-size: 2.8em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--secondary-color);
  line-height: 1.2;
}

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

.page-about__sub-title--center {
  text-align: center;
}

.page-about__lead-text {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-main-color);
}

.page-about__text-center {
  text-align: center;
}

.page-about__highlight {
  color: var(--secondary-color);
  font-weight: bold;
}

/* Links */
.page-about a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Hero Section */
.page-about__hero-section {
  background: var(--background-color-dark);
  padding-top: 10px; /* Small top padding, body handles main offset */
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.page-about__hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 40px;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Match img width attribute */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--border-color);
}

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

.page-about__hero-content {
  text-align: center;
  max-width: 900px;
  width: 100%;
}

.page-about__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.3);
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Include padding in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

.page-about__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-about__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.6);
  opacity: 0.9;
}

.page-about__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 10px rgba(242, 193, 78, 0.2);
}

.page-about__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--background-color-dark);
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.4);
}

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

/* Content Sections */
.page-about__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

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

.page-about__text-block {
  flex: 1;
}

.page-about__image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.page-about__image-wrapper--center {
  margin-top: 40px;
  max-width: 1000px; /* Match img width attribute */
  margin-left: auto;
  margin-right: auto;
}

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

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

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

.page-about__feature-card .page-about__card-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

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

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

.page-about__partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
  text-align: center;
}

.page-about__partner-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-about__partner-logo {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  /* filter: brightness(1.2); Removed as per strict filter rule, relying on image generation */
  border-radius: 5px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 2.5em;
  }
  .page-about__sub-title {
    font-size: 1.6em;
  }
  .page-about__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }
  .page-about__content-grid {
    flex-direction: column;
  }
  .page-about__content-grid--reverse {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-about__section-padding {
    padding: 40px 0;
  }
  .page-about__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }
  .page-about__sub-title {
    font-size: 1.4em;
  }
  .page-about__lead-text {
    font-size: 1.1em;
  }
  .page-about__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-about__hero-image-wrapper,
  .page-about__image-wrapper,
  .page-about__partner-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Mobile button responsiveness */
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    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__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

  /* Hero section padding-top for mobile */
  .page-about__hero-section {
    padding-top: var(--header-offset, 100px) !important; /* Mobile specific header offset */
  }
}

@media (max-width: 480px) {
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__sub-title {
    font-size: 1.2em;
  }
  .page-about__hero-container {
    gap: 20px;
  }
  .page-about__cta-buttons {
    flex-direction: column;
  }
}