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

.page-about {
  font-family: 'Arial', sans-serif;
  color: var(--page-about-text-main); /* Dark background, so light text */
  background-color: var(--page-about-background);
  line-height: 1.6;
}

.page-about__section {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

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

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

.page-about__section-title {
  font-size: 3em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--page-about-text-main);
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 550px; /* Limit height for aesthetic */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

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

.page-about__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 900px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.page-about__hero-title {
  font-size: clamp(2.5em, 5vw, 4.5em); /* Responsive font size */
  font-weight: 900;
  color: var(--page-about-text-main);
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.page-about__hero-description {
  font-size: 1.3em;
  color: var(--page-about-text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.page-about__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-sizing: border-box;
  max-width: 100%;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: var(--page-about-button-gradient);
  color: var(--page-about-text-main);
  border: none;
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

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

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

.page-about__btn-secondary:hover {
  background: var(--page-about-secondary-color);
  color: var(--page-about-background);
}

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

/* Grid Layouts */
.page-about__grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 40px;
}

.page-about__grid-two-columns--reversed {
  grid-template-areas: "image text";
}

.page-about__grid-two-columns--reversed .page-about__text-block {
  grid-area: text;
}

.page-about__grid-two-columns--reversed .page-about__image-block {
  grid-area: image;
}

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

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

.page-about__image-block {
  text-align: center;
}

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

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

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

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

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

.page-about__value-card p {
  color: var(--page-about-text-secondary);
  font-size: 1em;
}

/* Timeline */
.page-about__timeline {
  position: relative;
  max-width: 1000px;
  margin: 80px auto 0 auto;
  padding: 0 20px;
}

.page-about__timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--page-about-divider-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.page-about__timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
  box-sizing: border-box;
}

.page-about__timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--page-about-primary-color);
  border: 4px solid var(--page-about-deep-green);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.page-about__timeline-item:nth-child(odd) {
  left: 0;
}

.page-about__timeline-item:nth-child(even) {
  left: 50%;
}

.page-about__timeline-item:nth-child(even)::after {
  left: -10px;
}

.page-about__timeline-year {
  position: absolute;
  top: 10px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--page-about-gold-color);
  z-index: 1;
}

.page-about__timeline-item:nth-child(odd) .page-about__timeline-year {
  right: -80px;
  text-align: right;
}

.page-about__timeline-item:nth-child(even) .page-about__timeline-year {
  left: -80px;
  text-align: left;
}

.page-about__timeline-content {
  padding: 20px 30px;
  background-color: var(--page-about-card-bg);
  position: relative;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-about-border-color);
}

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

.page-about__timeline-content p {
  font-size: 1em;
  color: var(--page-about-text-secondary);
}

/* Products Grid */
.page-about__products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

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

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

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

.page-about__product-card h3 {
  padding: 20px 20px 0;
}

.page-about__product-title a {
  font-size: 1.4em;
  font-weight: bold;
  color: var(--page-about-text-main);
  text-decoration: none;
  display: block;
  transition: color 0.3s ease;
}

.page-about__product-title a:hover {
  color: var(--page-about-primary-color);
}

.page-about__product-description {
  padding: 0 20px 20px;
  color: var(--page-about-text-secondary);
  font-size: 0.95em;
}

.page-about__product-button {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  text-align: center;
  padding: 12px 0;
  font-size: 1em;
  white-space: normal;
}

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

.page-about__future-item {
  background-color: var(--page-about-card-bg);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-about-border-color);
}

.page-about__future-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--page-about-text-main);
}

.page-about__future-item p {
  color: var(--page-about-text-secondary);
  font-size: 1em;
}

/* CTA Section */
.page-about__cta-section {
  text-align: center;
  padding: 80px 0;
  background-color: var(--page-about-deep-green);
  border-top: 2px solid var(--page-about-border-color);
}

.page-about__cta-title {
  font-size: 2.8em;
  font-weight: bold;
  color: var(--page-about-text-main);
  margin-bottom: 20px;
}

.page-about__cta-description {
  font-size: 1.2em;
  color: var(--page-about-text-secondary);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* General image styling */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 2.5em;
  }

  .page-about__sub-title {
    font-size: 1.6em;
  }

  .page-about__hero-title {
    font-size: clamp(2em, 4.5vw, 4em);
  }

  .page-about__hero-description {
    font-size: 1.1em;
  }

  .page-about__grid-two-columns {
    gap: 40px;
  }

  .page-about__timeline::after {
    left: 20px;
  }

  .page-about__timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 20px;
  }

  .page-about__timeline-item:nth-child(even) {
    left: 0;
  }

  .page-about__timeline-item::after {
    left: 10px;
  }

  .page-about__timeline-item:nth-child(odd) .page-about__timeline-year,
  .page-about__timeline-item:nth-child(even) .page-about__timeline-year {
    left: 60px;
    text-align: left;
    right: auto;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-about__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-about__hero-image-wrapper {
    max-height: 300px;
  }

  .page-about__hero-content {
    top: auto;
    bottom: 20px;
    transform: translateX(-50%);
    padding: 15px;
    position: relative; /* Adjust for better visibility on small screens */
    background-color: rgba(8, 22, 15, 0.7); /* Semi-transparent background for text */
    border-radius: 10px;
    max-width: calc(100% - 30px);
  }

  .page-about__hero-title {
    font-size: clamp(1.8em, 8vw, 2.5em) !important;
    margin-bottom: 10px;
  }

  .page-about__hero-description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  .page-about__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-about__cta-button {
    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__hero-buttons .page-about__cta-button {
    width: auto;
    min-width: 200px; /* Ensure buttons are not too small */
    margin: 0 auto; /* Center buttons */
  }

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

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

  .page-about__sub-title {
    font-size: 1.4em;
  }

  .page-about__section-intro {
    font-size: 1em;
    margin-bottom: 40px;
  }

  .page-about__grid-two-columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-about__grid-two-columns--reversed {
    grid-template-areas: unset; /* Reset grid area for mobile */
  }

  .page-about__text-block, .page-about__image-block {
    grid-area: unset;
  }

  .page-about__image-full-width {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  .page-about__product-image {
    height: 200px; /* Adjust height for mobile */
  }

  .page-about__timeline::after {
    left: 20px;
  }

  .page-about__timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 20px;
  }

  .page-about__timeline-item:nth-child(even) {
    left: 0;
  }

  .page-about__timeline-item::after {
    left: 10px;
  }

  .page-about__timeline-item:nth-child(odd) .page-about__timeline-year,
  .page-about__timeline-item:nth-child(even) .page-about__timeline-year {
    left: 60px;
    text-align: left;
    right: auto;
  }

  .page-about__cta-title {
    font-size: 2em;
  }

  .page-about__cta-description {
    font-size: 1em;
  }

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

  /* Universal image and container mobile adaptation */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__text-block,
  .page-about__image-block,
  .page-about__values-grid,
  .page-about__products-grid,
  .page-about__future-points,
  .page-about__timeline,
  .page-about__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__timeline {
    padding-left: 0;
    padding-right: 0;
  }

  .page-about__timeline-item {
    padding-left: 60px;
    padding-right: 15px;
  }

  .page-about__timeline-item:nth-child(odd) .page-about__timeline-year,
  .page-about__timeline-item:nth-child(even) .page-about__timeline-year {
    left: 60px;
  }
}