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

.page-about {
  font-family: 'Arial', sans-serif;
  color: var(--keovip-text-main);
  background-color: var(--keovip-background);
  line-height: 1.6;
  font-size: 16px;
}

.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;
  position: relative;
  overflow: hidden;
}

.page-about__section-title {
  font-size: 2.8em;
  font-weight: 700;
  color: var(--keovip-text-main);
  margin-bottom: 40px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-about__section-title--cta {
  color: var(--keovip-text-main);
  margin-bottom: 20px;
}

.page-about__description {
  font-size: 1.1em;
  color: var(--keovip-text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__description--cta {
  font-size: 1.2em;
  color: var(--keovip-text-secondary);
  margin-bottom: 40px;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  padding-top: 10px; /* Small padding, body handles header offset */
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
}

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

.page-about__hero-content-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  z-index: 1;
  background: linear-gradient(0deg, rgba(8, 22, 15, 0.8) 0%, rgba(8, 22, 15, 0.4) 50%, rgba(8, 22, 15, 0.8) 100%);
}

.page-about__main-title {
  font-size: 3.5em;
  font-weight: 800;
  color: var(--keovip-gold);
  margin-bottom: 20px;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
  line-height: 1.1;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__hero-section .page-about__description {
  font-size: 1.3em;
  color: var(--keovip-text-main);
  max-width: 700px;
  margin-bottom: 40px;
}

.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 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-about__btn-primary {
  background: var(--keovip-button-gradient);
  color: var(--keovip-text-main);
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 8px 20px rgba(34, 199, 104, 0.6);
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background: transparent;
  color: var(--keovip-primary);
  border: 2px solid var(--keovip-primary);
  box-shadow: 0 5px 15px rgba(17, 168, 78, 0.2);
}

.page-about__btn-secondary:hover {
  background: var(--keovip-primary);
  color: var(--keovip-text-main);
  box-shadow: 0 8px 20px rgba(17, 168, 78, 0.4);
  transform: translateY(-2px);
}

/* General Content Sections */
.page-about__about-keovip,
.page-about__social-responsibility,
.page-about__technology-security,
.page-about__keovip-team {
  background-color: var(--keovip-background);
  padding: 80px 0;
}

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

.page-about__content-grid--team {
  grid-template-columns: 1fr 1fr;
}

.page-about__content-flex {
  display: flex;
  gap: 40px;
  align-items: center;
  text-align: left;
  flex-wrap: wrap;
}

.page-about__content-flex--reverse {
  flex-direction: row-reverse;
}

.page-about__text-block {
  flex: 1;
  min-width: 300px;
}

.page-about__text-block p {
  margin-bottom: 20px;
  color: var(--keovip-text-secondary);
  font-size: 1.05em;
}

.page-about__text-block p:last-child {
  margin-bottom: 0;
}

.page-about__text-block a {
  color: var(--keovip-primary);
  text-decoration: none;
  font-weight: 600;
}

.page-about__text-block a:hover {
  text-decoration: underline;
  color: var(--keovip-secondary);
}

.page-about__image-block {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px;
}

/* Why Choose Us Section */
.page-about__why-choose-us {
  background-color: var(--keovip-deep-green);
  padding: 80px 0;
}

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

.page-about__feature-card {
  background-color: var(--keovip-card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--keovip-border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  box-sizing: border-box;
}

.page-about__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-about__card-title {
  font-size: 1.6em;
  color: var(--keovip-text-main);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.page-about__card-text {
  color: var(--keovip-text-secondary);
  font-size: 1em;
  line-height: 1.6;
}

.page-about__card-text a {
  color: var(--keovip-secondary);
  text-decoration: none;
  font-weight: 600;
}

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

/* FAQ Section */
.page-about__faq-section {
  background-color: var(--keovip-background);
  padding: 80px 0;
}

.page-about__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-about__faq-item {
  background-color: var(--keovip-card-bg);
  border: 1px solid var(--keovip-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--keovip-text-main);
  background-color: var(--keovip-deep-green);
  border-bottom: 1px solid var(--keovip-divider);
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: var(--keovip-primary);
}

.page-about__faq-item[open] .page-about__faq-question {
  background-color: var(--keovip-primary);
}

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

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  margin-left: 20px;
  color: var(--keovip-gold);
}

.page-about__faq-item[open] .page-about__faq-toggle {
  content: '−';
  color: var(--keovip-text-main);
}

/* Hide default details marker */
.page-about__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-about__faq-item summary::marker {
  display: none;
}

.page-about__faq-answer {
  padding: 20px 25px;
  font-size: 1.05em;
  color: var(--keovip-text-secondary);
  line-height: 1.6;
  background-color: var(--keovip-card-bg);
}

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

/* CTA Bottom Section */
.page-about__cta-bottom {
  padding: 80px 0;
  background-color: var(--keovip-deep-green);
}

.page-about__cta-bottom .page-about__card {
  background-color: var(--keovip-card-bg);
  padding: 50px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--keovip-border);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 2.2em;
  }

  .page-about__main-title {
    font-size: 2.8em;
  }

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

  .page-about__content-flex {
    flex-direction: column;
  }

  .page-about__content-flex--reverse {
    flex-direction: column;
  }

  .page-about__image-block,
  .page-about__text-block {
    min-width: unset;
    width: 100%;
  }

  .page-about__image {
    max-width: 80%;
  }
}

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

  .page-about__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

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

  .page-about__hero-section .page-about__description {
    font-size: 1.1em;
    margin-bottom: 30px;
  }

  .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: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-about__hero-section {
    min-height: 60vh;
    padding-top: 10px !important;
  }

  .page-about__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-about__image-block,
  .page-about__text-block,
  .page-about__feature-card,
  .page-about__faq-item,
  .page-about__cta-bottom .page-about__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__card-image {
    height: auto !important;
    min-height: 200px !important;
  }

  .page-about__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-about__faq-answer {
    padding: 15px 20px;
  }

  .page-about__cta-bottom .page-about__card {
    padding: 30px 20px;
  }
  
  /* Ensure content images are not smaller than 200px */
  .page-about img:not(.page-about__hero-image) {
    min-width: 200px !important;
    min-height: 200px !important;
  }
}

@media (max-width: 480px) {
  .page-about__section-title {
    font-size: 1.6em;
  }

  .page-about__main-title {
    font-size: 1.8em;
  }

  .page-about__hero-section {
    min-height: 50vh;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    padding: 10px 15px;
  }
}