/* style/about.css */

/* Custom Colors */
:root {
  --page-about-bg-color: #08160F;
  --page-about-card-bg-color: #11271B;
  --page-about-text-main-color: #F2FFF6;
  --page-about-text-secondary-color: #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-color: #0A4B2C;
  --page-about-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-about {
  background-color: var(--page-about-bg-color);
  color: var(--page-about-text-main-color);
  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;
}

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

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

.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-about__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--page-about-gold-color);
  margin-bottom: 40px;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-about__sub-title {
  font-size: clamp(22px, 3vw, 30px);
  color: var(--page-about-glow-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__text-block p, .page-about__text-block li, .page-about__faq-answer p {
  color: var(--page-about-text-secondary-color);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 15px;
}

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

.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: var(--page-about-deep-green-color);
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-about__hero-content {
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
  text-align: center;
}

.page-about__main-title {
  color: var(--page-about-gold-color);
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.6);
  font-size: clamp(32px, 5vw, 56px); /* Using clamp for responsive H1 */
}

.page-about__description {
  font-size: 18px;
  color: var(--page-about-text-main-color);
  margin-bottom: 30px;
}

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

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

.page-about__btn-primary {
  background: var(--page-about-button-gradient);
  color: #ffffff;
  border: 2px solid var(--page-about-glow-color);
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

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

.page-about__btn-secondary:hover {
  transform: translateY(-3px);
  background-color: var(--page-about-glow-color);
  color: var(--page-about-bg-color);
}

.page-about__cta-button--large {
  padding: 18px 40px;
  font-size: 20px;
}

.page-about__grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
  margin-top: 40px;
}

.page-about__grid-two-columns--reversed .page-about__image-block {
  order: 2;
}

.page-about__grid-two-columns--reversed .page-about__content-block {
  order: 1;
}

.page-about__image-block {
  min-width: 200px;
  min-height: 200px;
}

.page-about__image-block--center {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.page-about__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Minimum size for all images */
  min-height: 200px;
}

.page-about__grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-about__card {
  background-color: var(--page-about-card-bg-color);
  border: 1px solid var(--page-about-border-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--page-about-text-main-color);
  min-height: 200px; /* Card content min height */
}

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

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

.page-about__card p {
  color: var(--page-about-text-secondary-color);
}

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

.page-about__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  color: var(--page-about-gold-color);
  background-color: var(--page-about-deep-green-color);
}

.page-about__faq-question::-webkit-details-marker {
  display: none;
}

.page-about__faq-question::marker {
  display: none;
}

.page-about__faq-qtext {
  flex-grow: 1;
  text-align: left;
}

.page-about__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-about-glow-color);
}

.page-about__faq-answer {
  padding: 0 20px 20px;
  text-align: left;
  color: var(--page-about-text-secondary-color);
}

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

.page-about__faq-item[open] .page-about__faq-question {
  background-color: var(--page-about-deep-green-color);
}

.page-about__faq-item[open] .page-about__faq-toggle {
  content: '−';
}

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

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

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-about__grid-two-columns {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .page-about__grid-two-columns--reversed .page-about__image-block {
    order: initial; /* Reset order for mobile */
  }
  .page-about__grid-two-columns--reversed .page-about__content-block {
    order: initial;
  }
  .page-about__image-block--center {
    justify-content: center;
  }
}

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

  .page-about__hero-content {
    margin-top: 20px;
  }

  .page-about__main-title {
    font-size: clamp(28px, 8vw, 48px);
  }

  .page-about__description {
    font-size: 15px;
  }

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

  .page-about__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__section-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 30px;
  }

  .page-about__sub-title {
    font-size: clamp(20px, 5vw, 26px);
  }

  .page-about__text-block p, .page-about__text-block li, .page-about__faq-answer p {
    font-size: 15px;
  }

  .page-about__grid-cards {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .page-about__card {
    padding: 20px;
  }

  .page-about__card-title {
    font-size: 20px;
  }

  .page-about__faq-question {
    font-size: 16px;
    padding: 15px;
  }
  
  .page-about__faq-answer {
    padding: 0 15px 15px;
  }

  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__hero-image-wrapper,
  .page-about__image-block,
  .page-about__container,
  .page-about__section,
  .page-about__card,
  .page-about__faq-list,
  .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;
    overflow: hidden !important; /* Ensure no overflow */
  }
  
  /* Reset padding for specific sections that might have it already from parent */
  .page-about__hero-section,
  .page-about__section--mission-vision,
  .page-about__section--history,
  .page-about__section--why-choose,
  .page-about__section--responsible,
  .page-about__section--faq,
  .page-about__section--cta-bottom {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Adjust hero section padding for mobile */
  .page-about__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px !important;
  }
}