/* About Page CSS Reset - Prevent External Interference */
body.page-template-page-about,
body[class*="about"] {
  /* Reset Bootstrap and other framework styles */
}

body.page-template-page-about .about-page,
body[class*="about"] .about-page {
  /* Reset all potential conflicting styles */
  all: initial !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #0f1419 0%, #1a252f 100%) !important;
  min-height: 100vh !important;
  display: block !important;
  position: relative !important;
  z-index: 1 !important;
}

/* About Page Isolated Styles - High Specificity */
body.page-template-page-about .about-page,
body[class*="about"] .about-page,
.about-page {
  background: linear-gradient(135deg, #0f1419 0%, #1a252f 100%) !important;
  color: #ffffff !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  min-height: 100vh !important;
  position: relative;
  z-index: 1;
}

/* Reset any conflicting styles */
body.page-template-page-about,
body[class*="about"] {
  margin: 0 !important;
  padding: 0 !important;
}

/* Ensure Bootstrap doesn't interfere */
body.page-template-page-about .about-page *,
body[class*="about"] .about-page * {
  box-sizing: border-box !important;
}

/* Container with higher specificity */
body.page-template-page-about .about-page .container,
body[class*="about"] .about-page .container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* About Hero Section - Isolated */
body.page-template-page-about .about-hero,
body[class*="about"] .about-hero,
.about-page .about-hero {
  background: linear-gradient(135deg, #0f1419 0%, #16202b 50%, #1e3a5f 100%) !important;
  padding: 120px 0 80px !important;
  text-align: center !important;
  position: relative !important;
  z-index: 2 !important;
}

.about-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.about-hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-features {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.about-feature-tag {
  background: rgba(255, 153, 0, 0.1);
  border: 1px solid rgba(255, 153, 0, 0.3);
  color: #ff9900;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* About Overview */
.about-overview {
  background: rgba(255, 255, 255, 0.02);
  padding: 80px 0;
  text-align: center;
}

.about-overview h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.about-overview p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* About Grid / Our Pillars */
.about-grid {
  background: #0f1419;
  padding: 80px 0;
}

.pillars-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 3rem;
}

.about-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 153, 0, 0.1);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.about-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 153, 0, 0.3);
  background: rgba(255, 153, 0, 0.05);
}

.about-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.about-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1rem;
}

.about-card p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.about-features {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.about-link {
  color: #ff9900;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.about-link:hover {
  color: #e88b00;
}

/* Why Choose Us */
.why-choose-us {
  background: rgba(255, 255, 255, 0.02);
  padding: 80px 0;
}

.why-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 3rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.benefit-item {
  text-align: center;
  padding: 1.5rem;
}

.benefit-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.benefit-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1rem;
}

.benefit-item p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* Community CTA */
.community-cta {
  background: #0f1419;
  padding: 80px 0;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* CTA Buttons - Isolated with high specificity */
body.page-template-page-about .about-page .cta-button,
body[class*="about"] .about-page .cta-button,
.about-page .cta-button {
  display: inline-block !important;
  padding: 1rem 2rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  font-size: 1rem !important;
  border: none !important;
  outline: none !important;
  cursor: pointer !important;
}

body.page-template-page-about .about-page .cta-button.primary,
body[class*="about"] .about-page .cta-button.primary,
.about-page .cta-button.primary {
  background: #ff9900 !important;
  color: #ffffff !important;
}

body.page-template-page-about .about-page .cta-button.primary:hover,
body[class*="about"] .about-page .cta-button.primary:hover,
.about-page .cta-button.primary:hover {
  background: #e88b00 !important;
  transform: translateY(-2px) !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

body.page-template-page-about .about-page .cta-button.secondary,
body[class*="about"] .about-page .cta-button.secondary,
.about-page .cta-button.secondary {
  background: transparent !important;
  border: 2px solid #ff9900 !important;
  color: #ff9900 !important;
}

body.page-template-page-about .about-page .cta-button.secondary:hover,
body[class*="about"] .about-page .cta-button.secondary:hover,
.about-page .cta-button.secondary:hover {
  background: #ff9900 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Scroll Animations */
.scroll-section {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.scroll-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-element {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-element.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Additional Isolation Rules */
body.page-template-page-about .about-page h1,
body.page-template-page-about .about-page h2,
body.page-template-page-about .about-page h3,
body.page-template-page-about .about-page p,
body.page-template-page-about .about-page a,
body.page-template-page-about .about-page div,
body.page-template-page-about .about-page section {
  font-family: inherit !important;
  color: inherit !important;
  margin: initial !important;
  padding: initial !important;
}

/* Ensure no Bootstrap classes interfere */
body.page-template-page-about .about-page .container {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
}

body.page-template-page-about .about-page .row,
body.page-template-page-about .about-page .col,
body.page-template-page-about .about-page [class*="col-"] {
  all: unset !important;
  display: block !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .about-hero {
    padding: 100px 0 60px;
  }
  
  .about-hero h1 {
    font-size: 2.5rem;
  }
  
  .about-hero p {
    font-size: 1.1rem;
  }
  
  .hero-features {
    flex-direction: column;
    align-items: center;
  }
  
  .about-grid-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-button {
    width: 100%;
    max-width: 280px;
  }
}