/* style/about.css */

:root {
  --wipwin-primary: #113B7A;
  --wipwin-secondary: #1D5FD1;
  --wipwin-text-main: #F3F8FF;
  --wipwin-text-secondary: #AFC4E8;
  --wipwin-card-bg: #10233F;
  --wipwin-border: #244D84;
  --wipwin-glow: #4FA8FF;
  --wipwin-gold: #F2C14E;
  --wipwin-divider: #1B3357;
  --wipwin-deep-navy: #08162B;
  --wipwin-btn-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
}

.page-about {
  font-family: 'Arial', sans-serif;
  color: var(--wipwin-text-main); /* Default text color for the page content */
  background-color: var(--wipwin-deep-navy); /* Body background from shared.css, so main content should have contrasting text */
}

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

/* Hero Section */
.page-about__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: var(--wipwin-deep-navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
  order: 1; /* Image above text */
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  max-width: 100%;
}

.page-about__hero-content {
  order: 2; /* Text below image */
  max-width: 900px;
  padding: 0 20px;
}

.page-about__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--wipwin-text-main);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(79, 168, 255, 0.5);
}

.page-about__intro-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--wipwin-text-secondary);
  margin-bottom: 30px;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-about__btn-primary {
  background: var(--wipwin-btn-gradient);
  color: var(--wipwin-text-main);
  border: 2px solid #2B73F6;
  box-shadow: 0 4px 15px rgba(43, 115, 246, 0.4);
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43, 115, 246, 0.6);
}

.page-about__btn-secondary {
  background: transparent;
  color: var(--wipwin-text-main);
  border: 2px solid var(--wipwin-secondary);
  box-shadow: 0 4px 15px rgba(29, 95, 209, 0.2);
}

.page-about__btn-secondary:hover {
  background: var(--wipwin-secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 95, 209, 0.4);
}

/* Common Section Styles */
.page-about__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--wipwin-text-main);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-about__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--wipwin-gold);
  border-radius: 2px;
}

/* Vision Mission Section */
.page-about__vision-mission-section {
  padding: 80px 0;
  background-color: var(--wipwin-deep-navy);
}

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

.page-about__card {
  background-color: var(--wipwin-card-bg);
  border: 1px solid var(--wipwin-border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--wipwin-text-main);
}

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

.page-about__card-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--wipwin-gold);
  margin-bottom: 15px;
}

.page-about__card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--wipwin-text-secondary);
  margin-bottom: 20px;
}

.page-about__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
  min-width: 200px;
  min-height: 200px;
}

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

.page-about__feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-about__feature-item {
  background-color: var(--wipwin-card-bg);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--wipwin-text-main);
  text-align: left;
}

.page-about__feature-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--wipwin-secondary);
  margin-bottom: 10px;
}

.page-about__feature-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--wipwin-text-secondary);
}

.page-about__why-choose-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
}

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

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--wipwin-border);
  overflow: hidden;
  background: var(--wipwin-card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
details.page-about__faq-item summary.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--wipwin-text-main);
}
details.page-about__faq-item summary.page-about__faq-question::-webkit-details-marker {
  display: none;
}
details.page-about__faq-item summary.page-about__faq-question:hover {
  background: rgba(var(--wipwin-primary), 0.2);
}
.page-about__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--wipwin-text-main);
}
.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--wipwin-gold);
  flex-shrink: 0;
  margin-left: 15px;
  width: 32px;
  text-align: center;
  line-height: 1;
}
details.page-about__faq-item .page-about__faq-answer {
  padding: 0 25px 25px;
  background: rgba(var(--wipwin-card-bg), 0.8);
  border-radius: 0 0 8px 8px;
  color: var(--wipwin-text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

/* CTA Bottom Section */
.page-about__cta-bottom-section {
  padding: 80px 0;
  background-color: var(--wipwin-primary);
  text-align: center;
}

.page-about__cta-bottom-section p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--wipwin-text-secondary);
  margin-bottom: 40px;
}

.page-about__btn-large {
  padding: 18px 40px;
  font-size: 1.15rem;
  min-width: 250px;
}

/* --- Responsive Styles --- */

@media (max-width: 1024px) {
  .page-about__hero-section {
    padding-bottom: 40px;
  }

  .page-about__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-about__intro-text {
    font-size: 1rem;
  }

  .page-about__btn-primary, .page-about__btn-secondary {
    padding: 12px 25px;
    font-size: 0.95rem;
  }

  .page-about__section-title {
    font-size: clamp(1.6rem, 3.8vw, 2.5rem);
  }

  .page-about__vision-mission-section,
  .page-about__why-choose-us-section,
  .page-about__faq-section,
  .page-about__cta-bottom-section {
    padding: 60px 0;
  }

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

  .page-about__card-title {
    font-size: 1.4rem;
  }

  .page-about__feature-title {
    font-size: 1.25rem;
  }

  .page-about__faq-qtext {
    font-size: 1rem;
  }

  .page-about__faq-toggle {
    font-size: 24px;
    width: 28px;
  }
}

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

  /* Hero Section */
  .page-about__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 30px;
  }

  .page-about__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-about__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-about__intro-text {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

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

  /* Common Section Styles */
  .page-about__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 30px;
  }

  .page-about__vision-mission-section,
  .page-about__why-choose-us-section,
  .page-about__faq-section,
  .page-about__cta-bottom-section {
    padding: 40px 0;
  }

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

  .page-about__card {
    padding: 20px;
  }

  .page-about__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Why Choose Us Section */
  .page-about__feature-list {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
  }

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

  .page-about__why-choose-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* FAQ Section */
  details.page-about__faq-item summary.page-about__faq-question {
    padding: 15px 20px;
  }

  .page-about__faq-qtext {
    font-size: 0.95rem;
  }

  .page-about__faq-toggle {
    font-size: 22px;
    width: 26px;
  }

  details.page-about__faq-item .page-about__faq-answer {
    padding: 0 20px 20px;
  }

  /* CTA Bottom Section */
  .page-about__cta-bottom-section p {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-about__btn-large {
    padding: 15px 30px;
    font-size: 1rem;
    min-width: unset;
    width: 100%;
  }

  /* Generic Image and Container rules */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .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-x: hidden;
  }
  .page-about__cta-buttons {
    flex-wrap: wrap !important;
    gap: 15px;
  }
}