/* style/about-our-history.css */

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

.page-about-our-history {
  background-color: var(--page-bg-color);
  color: var(--text-main-color);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-about-our-history__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body handles --header-offset, so small top padding here */
  overflow: hidden;
}

.page-about-our-history__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for aesthetic */
  overflow: hidden;
}

.page-about-our-history__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Subtle darkening for text readability */
}

.page-about-our-history__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 900px;
  padding: 20px;
  z-index: 10; /* Ensure content is above image */
  color: var(--text-main-color);
}

.page-about-our-history__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size, no fixed large value */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--gold-color);
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

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

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

.page-about-our-history__btn-primary,
.page-about-our-history__btn-secondary {
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  text-align: center;
}

.page-about-our-history__btn-primary {
  background: var(--btn-gradient);
  color: var(--text-main-color);
  border: 2px solid transparent;
}

.page-about-our-history__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-about-our-history__btn-secondary {
  background: none;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-about-our-history__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-main-color);
  transform: translateY(-3px);
}

.page-about-our-history__section {
  padding: 60px 0;
  border-bottom: 1px solid var(--divider-color);
}

.page-about-our-history__section:last-of-type {
  border-bottom: none;
}

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

.page-about-our-history__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--gold-color);
}

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

.page-about-our-history__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-main-color);
}

.page-about-our-history__image-block {
  text-align: center;
  margin: 40px 0;
}

.page-about-our-history__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  display: block; /* Ensure no extra space below image */
  margin: 0 auto;
}

.page-about-our-history__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about-our-history__card {
  background-color: var(--card-bg-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  color: var(--text-main-color);
}

.page-about-our-history__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-about-our-history__card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin: 20px 15px 10px 15px;
  color: var(--gold-color);
}

.page-about-our-history__card-text {
  font-size: 1em;
  color: var(--text-secondary-color);
  padding: 0 15px;
  flex-grow: 1;
}

.page-about-our-history__card-link {
  display: inline-block;
  margin-top: 20px;
  padding: 8px 20px;
  background: var(--primary-color);
  color: var(--text-main-color);
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.page-about-our-history__card-link:hover {
  background-color: var(--secondary-color);
}

.page-about-our-history__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-about-our-history__feature-item {
  background-color: var(--card-bg-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-main-color);
}

.page-about-our-history__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-about-our-history__feature-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--gold-color);
}

.page-about-our-history__feature-description {
  font-size: 1em;
  color: var(--text-secondary-color);
}

.page-about-our-history__faq-section {
  padding: 60px 0;
}

.page-about-our-history__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

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

.page-about-our-history__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--deep-green-color);
  color: var(--text-main-color);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-about-our-history__faq-question::-webkit-details-marker {
  display: none;
}

.page-about-our-history__faq-question:hover {
  background-color: #0d5f3a;
}

.page-about-our-history__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-about-our-history__faq-item[open] .page-about-our-history__faq-toggle {
  transform: rotate(45deg);
}

.page-about-our-history__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1.05em;
  color: var(--text-secondary-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about-our-history__hero-content {
    max-width: 700px;
  }
  .page-about-our-history__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
  .page-about-our-history__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-about-our-history__hero-section {
    padding: 10px 0 40px 0 !important; /* body handles --header-offset, small top padding here */
  }
  .page-about-our-history__hero-content {
    position: static;
    transform: none;
    padding: 20px;
    margin-top: -100px; /* Pull content up over the bottom of the image */
    background: linear-gradient(to top, var(--page-bg-color) 0%, transparent 100%); /* Fade effect */
  }
  .page-about-our-history__hero-image-wrapper {
    max-height: 400px;
  }
  .page-about-our-history__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em) !important;
    margin-top: 20px;
  }
  .page-about-our-history__intro-text {
    font-size: 1em;
  }
  .page-about-our-history__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
  }
  .page-about-our-history__btn-primary,
  .page-about-our-history__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
  }
  .page-about-our-history__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-about-our-history__section-title {
    font-size: 1.8em;
  }
  .page-about-our-history__sub-title {
    font-size: 1.5em;
  }
  .page-about-our-history__paragraph {
    font-size: 1em;
  }
  .page-about-our-history__content-image,
  .page-about-our-history__card-image,
  .page-about-our-history__feature-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about-our-history__card-grid,
  .page-about-our-history__feature-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-about-our-history__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-about-our-history__faq-answer {
    font-size: 0.95em;
    padding: 0 20px 15px 20px;
  }
  .page-about-our-history__video-section {
    padding-top: 10px !important;
  }
  .page-about-our-history__video-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-about-our-history video,
  .page-about-our-history__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

@media (max-width: 480px) {
  .page-about-our-history__main-title {
    font-size: clamp(1.2em, 7vw, 2em) !important;
  }
  .page-about-our-history__section-title {
    font-size: 1.5em;
  }
  .page-about-our-history__sub-title {
    font-size: 1.3em;
  }
}