/* style/about.css */
:root {
  --primary-color: #0A2342;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-light: #f4f7f6;
  --background-dark: #0A2342;
  --accent-color: #e53935; /* A subtle red for highlights if needed */
}

.page-about {
  font-family: 'Arial', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
}

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

.page-about .section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
  font-weight: bold;
}

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

.page-about .section-description {
  text-align: center;
  font-size: 1.1em;
  color: #555;
  margin-bottom: 60px;
}

.page-about a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about a:hover {
  color: var(--secondary-color);
}

/* Hero Banner */
.page-about .hero-banner {
  position: relative;
  width: 100%;
  height: 500px; /* Increased height for impact */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-about .hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-about .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Darker overlay for better text contrast */
  z-index: 2;
}

.page-about .hero-content {
  position: relative;
  z-index: 3;
  color: var(--text-light);
  max-width: 800px;
  padding: 20px;
}

.page-about .hero-content h1 {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--secondary-color);
}

.page-about .hero-content p {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.5;
}

.page-about .hero-content .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.2em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--secondary-color);
}

.page-about .hero-content .cta-button:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

/* Introduction Section */
.page-about .introduction-section {
  padding: 80px 0;
  background-color: var(--background-light);
}

.page-about .content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.page-about .content-grid.reverse-grid {
  flex-direction: row-reverse;
}

.page-about .content-grid .text-content {
  flex: 1;
}

.page-about .content-grid .text-content h2 {
  font-size: 2em;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.page-about .content-grid .text-content p {
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.7;
}

.page-about .content-grid .image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about .content-grid .content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Values Section */
.page-about .values-section {
  padding: 80px 0;
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-about .values-section .section-title {
  color: var(--secondary-color);
}

.page-about .values-section .section-title::after {
  background-color: var(--text-light);
}

.page-about .values-section .section-description {
  color: rgba(255, 255, 255, 0.8);
}

.page-about .values-section a {
  color: var(--secondary-color);
}

.page-about .values-section a:hover {
  color: var(--text-light);
}

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

.page-about .value-item {
  background-color: #1a3a5e; /* Slightly lighter dark blue */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about .value-item:hover {
  transform: translateY(-10px);
  background-color: #2a4a6e;
}

.page-about .value-item .value-icon {
  width: 100px; /* Increased icon size */
  height: 100px; /* Increased icon size */
  margin-bottom: 20px;
  object-fit: contain;
}

.page-about .value-item h3 {
  font-size: 1.6em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-about .value-item p {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.9);
}

/* Development Section - Reuses content-grid styling */
.page-about .development-section {
  padding: 80px 0;
  background-color: var(--background-light);
}

/* CTA Section */
.page-about .cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-color), #000d1a);
  text-align: center;
  color: var(--text-light);
}

.page-about .cta-section .section-title {
  color: var(--secondary-color);
}

.page-about .cta-section .section-title::after {
  background-color: var(--text-light);
}

.page-about .cta-section .section-description {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 50px;
  font-size: 1.15em;
}

.page-about .cta-buttons {
  display: flex;
  justify-content: center;
  gap: 25px;
}

.page-about .cta-button.primary-button {
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 18px 45px;
  border-radius: 50px;
  font-size: 1.2em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--secondary-color);
}

.page-about .cta-button.primary-button:hover {
  background: transparent;
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-about .cta-button.secondary-button {
  background: transparent;
  color: var(--text-light);
  padding: 18px 45px;
  border-radius: 50px;
  font-size: 1.2em;
  font-weight: bold;
  border: 2px solid var(--text-light);
  transition: all 0.3s ease;
}

.page-about .cta-button.secondary-button:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

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

.page-about .faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-about .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-radius 0.3s ease;
}

.page-about .faq-item.active .faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-about .faq-question:hover {
  background: #f5f5f5;
}

.page-about .faq-question h3 {
  margin: 0;
  font-size: 1.25em;
  color: var(--primary-color);
  flex-grow: 1;
  text-align: left;
}

.page-about .faq-question h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-about .faq-question h3 a:hover {
  color: var(--secondary-color);
}

.page-about .faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-about .faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--accent-color);
}

.page-about .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #fdfdfd;
  border: 1px solid #e0e0e0;
  border-top: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.page-about .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 20px 25px;
  border-color: #e0e0e0;
}

.page-about .faq-answer p {
  margin: 0;
  color: var(--text-dark);
  font-size: 1.05em;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about .hero-banner {
    height: 400px;
  }

  .page-about .hero-content h1 {
    font-size: 2.8em;
  }

  .page-about .hero-content p {
    font-size: 1.1em;
  }

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

  .page-about .content-grid {
    flex-direction: column;
  }

  .page-about .content-grid.reverse-grid {
    flex-direction: column;
  }

  .page-about .content-grid .image-wrapper {
    margin-top: 30px;
  }

  .page-about .values-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-about .value-item h3 {
    font-size: 1.4em;
  }

  .page-about .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-about .cta-button.primary-button, 
  .page-about .cta-button.secondary-button {
    width: 80%;
    max-width: 350px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .page-about .hero-banner {
    height: 350px;
  }

  .page-about .hero-content h1 {
    font-size: 2.2em;
  }

  .page-about .hero-content p {
    font-size: 1em;
  }

  .page-about .hero-content .cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }

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

  .page-about .section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }

  .page-about .introduction-section, 
  .page-about .values-section, 
  .page-about .development-section, 
  .page-about .cta-section, 
  .page-about .faq-section {
    padding: 60px 0;
  }

  .page-about .value-item .value-icon {
    width: 80px;
    height: 80px;
  }

  .page-about .faq-question {
    padding: 15px 20px;
  }

  .page-about .faq-question h3 {
    font-size: 1.1em;
  }

  .page-about .faq-toggle {
    font-size: 20px;
  }

  .page-about .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-about .hero-banner {
    height: 300px;
  }

  .page-about .hero-content h1 {
    font-size: 1.8em;
  }

  .page-about .hero-content p {
    font-size: 0.9em;
  }

  .page-about .hero-content .cta-button {
    padding: 10px 25px;
    font-size: 0.9em;
  }

  .page-about .section-title {
    font-size: 1.5em;
  }

  .page-about .cta-button.primary-button, 
  .page-about .cta-button.secondary-button {
    width: 95%;
  }
}