/* style/about.css */

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

/* Base styles for the page content */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Default text color for dark body bg */
  background-color: var(--bg-color);
}

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

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

/* Hero Section */
.page-about__hero-section {
  padding: 0;
  padding-top: 10px; /* Small top padding, body handles header-offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  background-color: var(--card-bg);
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  min-height: 200px; /* Ensure min size */
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px 60px;
  max-width: 900px;
  margin-top: -80px; /* Overlap slightly with image for visual appeal */
  background-color: var(--card-bg);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.page-about__main-title {
  color: var(--gold-color);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-about__hero-description {
  color: var(--text-secondary-color);
  font-size: 1.1em;
  margin-bottom: 30px;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-about__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main-color);
  border: none;
}

.page-about__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color);
}

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

.page-about__btn-secondary:hover {
  background-color: var(--gold-color);
  color: var(--bg-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__btn-inline {
  margin-top: 20px;
}

/* Section Titles and Descriptions */
.page-about__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 0 8px rgba(17, 168, 78, 0.3);
}

.page-about__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: var(--text-secondary-color);
}

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

/* Content Grid */
.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__content-grid--reverse {
  direction: rtl;
}

.page-about__content-grid--reverse > *:nth-child(even) {
  direction: ltr;
}
.page-about__content-grid--reverse > *:nth-child(odd) {
  direction: ltr;
}

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

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

.page-about__image {
  width: 100%;
  height: auto;
  max-width: 800px; /* Adjust max-width as needed */
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  min-height: 200px; /* Ensure min size */
}

/* Specific Section Styles */
.page-about__history-section,
.page-about__products-section,
.page-about__team-section,
.page-about__commitment-section,
.page-about__cta-final-section {
  background-color: var(--bg-color);
  color: var(--text-main-color);
}

.page-about__history-section .page-about__section-title,
.page-about__products-section .page-about__section-title,
.page-about__team-section .page-about__section-title,
.page-about__commitment-section .page-about__section-title,
.page-about__cta-final-section .page-about__section-title {
  color: var(--primary-color);
}

.page-about__mission-section,
.page-about__security-section,
.page-about__promotions-section,
.page-about__faq-section {
  background-color: var(--card-bg);
  color: var(--text-main-color);
}

.page-about__mission-section .page-about__section-title,
.page-about__security-section .page-about__section-title,
.page-about__promotions-section .page-about__section-title,
.page-about__faq-section .page-about__section-title {
  color: var(--gold-color);
}

.page-about__value-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-about__value-item {
  background-color: var(--deep-green-color);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  border-left: 5px solid var(--primary-color);
  color: var(--text-main-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-about__value-item strong {
  color: var(--gold-color);
}

/* FAQ Section */
.page-about__faq-list {
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid var(--divider-color);
}

.page-about__faq-item {
  margin-bottom: 10px;
  border-bottom: 1px solid var(--divider-color);
  color: var(--text-main-color);
  cursor: pointer;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-weight: bold;
  color: var(--text-main-color);
  font-size: 1.1em;
  list-style: none;
  cursor: pointer;
}

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

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
  padding-bottom: 20px;
  color: var(--text-secondary-color);
  font-size: 0.95em;
  line-height: 1.7;
}

/* Text Colors for specific sections */
.page-about__dark-bg p, .page-about__dark-bg li, .page-about__dark-bg a {
  color: var(--text-secondary-color);
}
.page-about__dark-bg h1, .page-about__dark-bg h2, .page-about__dark-bg h3 {
  color: var(--text-main-color);
}

.page-about__light-bg p, .page-about__light-bg li, .page-about__light-bg a {
  color: var(--text-main-color);
}
.page-about__light-bg h1, .page-about__light-bg h2, .page-about__light-bg h3 {
  color: var(--primary-color);
}

/* Ensure specific text colors */
.page-about__text-main {
  color: var(--text-main-color);
}

.page-about__text-secondary {
  color: var(--text-secondary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__content-grid {
    grid-template-columns: 1fr;
  }
  .page-about__content-grid--reverse {
    direction: ltr; /* Reset for smaller screens */
  }
  .page-about__hero-content {
    margin-top: -40px;
    padding: 30px 20px 40px;
  }
  .page-about__main-title {
    font-size: 2em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__sub-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-about__section {
    padding: 40px 0;
  }
  .page-about__hero-content {
    margin-top: -20px;
    padding: 20px 15px 30px;
  }
  .page-about__main-title {
    font-size: clamp(1.8em, 5vw, 2.2em);
  }
  .page-about__section-title {
    font-size: clamp(1.5em, 5vw, 2em);
  }
  .page-about__hero-description,
  .page-about__section-description {
    font-size: 1em;
  }
  .page-about__sub-title {
    font-size: 1.3em;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95em;
  }

  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__image-wrapper,
  .page-about__cta-buttons,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  /* Video section specific padding for mobile */
  .page-about__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

@media (max-width: 480px) {
  .page-about__hero-content {
    padding: 15px 10px 20px;
  }
  .page-about__hero-description {
    font-size: 0.95em;
  }
}