/**
 * Serenity* Network - Additional Page Styles
 * CSS styles for overview and FAQ pages
 *
 * @version 1.0.0
 */

/* Common page styles */
.page-title {
  font-size: 2.5rem;
  color: #050a2b;
  margin-bottom: 0.5rem;
  font-family: 'Questrial', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.content-section {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  padding: 30px;
  margin-bottom: 30px;
}

.content-section h2 {
  color: #050a2b;
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-family: 'Questrial', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  border-bottom: 1px solid #eaeef2;
  padding-bottom: 10px;
}

.content-section h3 {
  color: #2c3e50;
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.content-section p {
  color: #5a6b7b;
  line-height: 1.6;
  margin-bottom: 15px;
}

.content-section ul, 
.content-section ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.content-section li {
  margin-bottom: 8px;
  color: #5a6b7b;
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background-color: #4862ff;
  color: #fff;
  border: 2px solid #4862ff;
}

.btn-primary:hover {
  background-color: #3651e8;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: #f1f4fa;
  color: #2c3e50;
  border: 2px solid #d3dae6;
}

.btn-secondary:hover {
  background-color: #e2e8f0;
  transform: translateY(-2px);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* Overview page specific styles */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.principle-card {
  background-color: #f7f9fc;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #4862ff;
}

.principle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #e9f0ff;
  color: #4862ff;
  margin-bottom: 15px;
}

.principle-icon i {
  font-size: 24px;
}

.network-segments {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.segment-card {
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.segment-card.strategic {
  background-color: #f7f7ff;
  border-left: 4px solid #4862ff;
  border-top: none;
}

.segment-card.commercial {
  background-color: #f0fff7;
  border-left: 4px solid #48ff98;
  border-top: none;
}

.segment-card.technological {
  background-color: #fff7f0;
  border-left: 4px solid #ff7f48;
  border-top: none;
}

.segment-card h3 {
  margin-bottom: 15px;
  color: #050a2b;
}

.segment-description {
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.segment-categories {
  list-style: none;
  padding: 0;
}

.segment-categories li {
  margin-bottom: 8px;
  padding-left: 18px;
  position: relative;
}

.segment-categories li i {
  position: absolute;
  left: 0;
  top: 5px;
  color: #4862ff;
}

.segment-categories ul {
  list-style: none;
  padding-left: 18px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.segment-categories ul li {
  font-size: 0.9rem;
  margin-bottom: 5px;
  color: #5a6b7b;
}

/* Network Structure Card Colors */
.network-segments .segment-card:nth-child(1) {
  background-color: #f7f7ff;
  border-left: 4px solid #7675ff;
}

.network-segments .segment-card:nth-child(2) {
  background-color: #f0fff7;
  border-left: 4px solid #48ff98;
}

.network-segments .segment-card:nth-child(3) {
  background-color: #fff7f0;
  border-left: 4px solid #ff964b;
}

.relationship-types {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.relationship-card {
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.relationship-card.partner {
  border-left: 4px solid #4862ff;
}

.relationship-card.integration {
  border-left: 4px solid #48c2ff;
}

.relationship-card.affiliate {
  border-left: 4px solid #ff7f48;
}

.relationship-card h3 {
  margin-bottom: 15px;
}

.relationship-card h3 i {
  margin-right: 10px;
  color: #4862ff;
}

.relationship-card ul {
  list-style: none;
  padding: 0;
}

.relationship-card ul li {
  margin-bottom: 8px;
  padding-left: 15px;
  position: relative;
}

.relationship-card ul li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #4862ff;
}

.journey-timeline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  position: relative;
  margin: 40px 0 20px;
}

.journey-timeline:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: #e9f0ff;
  top: 40px;
  left: 0;
  z-index: 1;
}

.journey-step {
  flex: 1;
  min-width: 200px;
  padding: 0 15px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #4862ff;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  margin: 0 auto 20px;
}

.journey-step h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.benefit-card {
  background-color: #f7f9fc;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-5px);
}

.benefit-card i {
  font-size: 36px;
  color: #4862ff;
  margin-bottom: 15px;
}

.benefit-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.benefit-card p {
  font-size: 0.9rem;
  color: #5a6b7b;
}

.cta-section {
  text-align: center;
  padding: 40px;
  background-color: #e9f0ff;
}

.cta-section h2 {
  border-bottom: none;
  padding-bottom: 0;
}

.cta-section p {
  max-width: 800px;
  margin: 0 auto 20px;
}

/* FAQ page specific styles */
.faq-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.faq-category-btn {
  padding: 8px 16px;
  background-color: #f1f4fa;
  border: 2px solid transparent;
  border-radius: 20px;
  color: #2c3e50;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-category-btn:hover {
  background-color: #e2e8f0;
}

.faq-category-btn.active {
  background-color: #4862ff;
  color: #fff;
  border-color: #4862ff;
}

.faq-search {
  position: relative;
  margin: 0 auto 30px;
  max-width: 600px;
}

#faq-search-input {
  width: 100%;
  padding: 12px 40px 12px 15px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
}

#faq-search-input:focus {
  border-color: #4862ff;
  box-shadow: 0 0 8px rgba(72,98,255,0.3);
}

#faq-search-clear {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  color: #4862ff;
}

.faq-container {
  margin-bottom: 30px;
}

.faq-section {
  margin-bottom: 40px;
}

.faq-section h2 {
  color: #050a2b;
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-family: 'Questrial', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  border-bottom: 1px solid #eaeef2;
  padding-bottom: 10px;
}

.faq-item {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  width: 100%;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background-color: #f7f9fc;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #2c3e50;
  flex: 1;
}

.faq-toggle {
  background: none;
  border: none;
  color: #4862ff;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
}

.faq-toggle:hover {
  transform: scale(1.1);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p,
.faq-answer ul,
.faq-answer ol {
  padding-left: 2rem;
  margin: 1rem 0;
}

.faq-answer li {
  margin-bottom: 0.5rem;
  margin-left: 2rem;
  padding-left: 0.25rem;
}

.no-results-faq {
  text-align: center;
  padding: 40px 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin: 20px 0;
}

.no-results-faq h3 {
  font-size: 22px;
  color: #2c3e50;
  margin-bottom: 15px;
  font-family: 'Questrial', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.no-results-faq p {
  color: #7f8c8d;
  margin-bottom: 20px;
  max-width: 600px;
  margin: 0 auto 20px;
}

/* Make navbar sticky and ensure proper background color */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background-color: #4862ff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Add padding to the body to prevent content from hiding behind the fixed navbar */
body {
  padding-top: 60px; /* Adjust based on your navbar height */
}

/* Header sizing adjustments */
header {
  max-width: 1200px;
  margin: 0 auto;
}

header .page-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

header .subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
}

/* Logo size adjustment */
.nav-logo img {
  max-height: 40px;
  width: auto;
}

/* Responsive styles for smaller screens */
@media (max-width: 768px) {
  .principles-grid,
  .network-segments,
  .relationship-types,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .faq-categories {
    flex-direction: column;
  }

  .step-number {
    font-size: 24px;
    height: 60px;
    width: 60px;
  }

  .journey-step {
    margin-bottom: 30px;
  }

  .journey-timeline {
    flex-direction: column;
    justify-content: center;
  }

  .journey-timeline:after {
    display: none;
  }
  
  /* Adjust for mobile fixed navbar */
  body {
    padding-top: 50px; /* Smaller padding for mobile */
  }
  
  .nav-links.active {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #4862ff;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
  }
}

/* Mobile responsive fixes */
@media (max-width: 480px) {
  .mobile-stack {
    flex-direction: column;
    width: 100%;
  }
  
  .mobile-stack .btn {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .cta-buttons {
    gap: 0.5rem;
  }
  
  .content-section.cta-section {
    padding: 30px 15px;
  }
  
  .cta-buttons,
  .mobile-stack,
  .content-section.cta-section .cta-buttons {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px !important;
  }
  
  .cta-buttons .btn,
  .mobile-stack .btn,
  .content-section.cta-section .cta-buttons .btn {
    width: 100% !important;
    margin: 0 !important;
    display: block !important;
  }
  
  .content-section.cta-section {
    padding: 25px 15px !important;
  }

  .content-section.cta-section .cta-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .content-section.cta-section .cta-buttons .btn {
    width: 100%;
    margin: 0;
  }

  .content-section.cta-section {
    padding: 25px 15px;
  }
}
