/* style/about.css */

/* Custom Color Variables */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --bg-color: #08160F; /* Background */
  --card-bg-color: #11271B; /* Card BG */
  --text-main-color: #F2FFF6; /* Text Main */
  --text-secondary-color: #A7D9B8; /* Text Secondary */
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  --border-color: #2E7A4E; /* Border */
  --glow-color: #57E38D; /* Glow */
  --gold-color: #F2C14E; /* Gold */
  --divider-color: #1E3A2A; /* Divider */
  --deep-green-color: #0A4B2C; /* Deep Green */
}

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

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px; /* Adjust padding for overall section */
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--bg-color);
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-about__hero-content {
  position: relative; /* Ensure content is above any potential background elements */
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

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

/* General Section Styling */
.page-about__section {
  padding: 60px 0;
  background-color: var(--bg-color);
}

.page-about__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.3;
}

.page-about__text-block {
  font-size: 1.1em;
  color: var(--text-main-color);
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-about__card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  color: var(--text-main-color);
}

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

.page-about__card p {
  font-size: 1em;
  color: var(--text-secondary-color);
  margin-bottom: 10px;
}

.page-about__card-image {
  width: 100%;
  height: auto;
  max-height: 300px; /* Ensure images don't get too tall in cards */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure no extra space below image */
}

.page-about__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-about__list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  color: var(--text-secondary-color);
}

.page-about__list li::before {
  content: "•"; /* Custom bullet point */
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2em;
  line-height: 1;
}

/* Image Content Block (Text beside Image) */
.page-about__image-content-block {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
  margin-top: 40px;
}

.page-about__image-content-block--reverse {
  flex-direction: row-reverse;
}

.page-about__content-image {
  flex: 1;
  min-width: 400px; /* Minimum width for image before wrapping */
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-about__image-content-block .page-about__text-block {
  flex: 1;
  min-width: 300px; /* Minimum width for text block before wrapping */
  margin-bottom: 0; /* Reset margin for this specific text block */
  max-width: none; /* Allow text block to take full width if needed */
}

.page-about__content-subtitle {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__image-content-block .page-about__text-block p {
  color: var(--text-secondary-color);
  margin-bottom: 15px;
}

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

.page-about__feature-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  color: var(--text-main-color);
}

.page-about__feature-title {
  font-size: 1.6em;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__feature-item p {
  color: var(--text-secondary-color);
  margin-bottom: 20px;
  flex-grow: 1; /* Push button to bottom */
}


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

.page-about__cta-section .page-about__section-title {
  color: var(--gold-color);
  margin-bottom: 20px;
}

.page-about__cta-section .page-about__text-block {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: var(--text-main-color);
}

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
  box-sizing: border-box; /* Include padding in width calculation */
  text-align: center;
}

.page-about__btn-primary {
  background: var(--button-gradient);
  color: #ffffff; /* White text for primary button */
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

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

.page-about__btn-secondary:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__image-content-block {
    flex-direction: column;
    align-items: center;
  }

  .page-about__image-content-block--reverse {
    flex-direction: column; /* Reset to default column for reverse on smaller screens */
  }

  .page-about__content-image {
    min-width: unset;
    width: 100%;
    max-width: 600px; /* Constrain image width on tablet */
  }

  .page-about__image-content-block .page-about__text-block {
    min-width: unset;
    width: 100%;
    text-align: center;
  }

  .page-about__content-subtitle {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body already has padding-top, this is for visual separation */
  }

  .page-about__hero-content {
    padding: 15px;
  }

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

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

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

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

  .page-about__text-block {
    font-size: 1em;
  }

  .page-about__card-grid,
  .page-about__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__card,
  .page-about__feature-item {
    padding: 20px;
  }

  .page-about__card-title,
  .page-about__feature-title {
    font-size: 1.3em;
  }

  .page-about__cta-section {
    padding: 60px 0;
  }

  .page-about__cta-section .page-about__text-block {
    font-size: 1em;
  }

  .page-about__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Add horizontal padding to button container */
  }

  .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;
  }

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

  /* Mobile container specific rules */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__image-content-block,
  .page-about__cta-section,
  .page-about__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-about__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Ensure no filter on images */
.page-about img {
  filter: none !important;
}

/* Content area image CSS size lower bound (min 200px) */
.page-about__content-image,
.page-about__card-image {
  min-width: 200px;
  min-height: 200px;
}

/* Specific content area img rules to prevent small sizes */
.page-about__image-content-block img,
.page-about__card img {
  width: auto;
  max-width: 100%;
  height: auto;
  min-width: 200px;
  min-height: 200px;
}

@media (max-width: 768px) {
  .page-about__image-content-block img,
  .page-about__card img {
    min-width: 200px !important;
    min-height: 200px !important;
  }
}